File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change 12
12
format-code :
13
13
runs-on : ubuntu-latest
14
14
steps :
15
- - name : Retrieve secrets from Keeper
16
- id : ksecrets
17
- uses : Keeper-Security/ksm-action@master
18
- with :
19
- keeper-secret-config : ${{ secrets.KSM_CONFIG }}
20
- secrets : |-
21
- v2h4jKiZlJywDSoKzRMnRw/field/Access Token > env:PAT # Fetch PAT and store in environment variable
22
-
23
15
- name : Checkout code
24
16
uses : actions/checkout@v4
25
17
with :
58
50
done
59
51
60
52
- name : Commit and push changes
61
- env :
62
- PAT : ${{ env.PAT }} # Use PAT fetched from Keeper
63
53
run : |
64
54
HAS_CHANGES=$(git diff --staged --name-only)
65
55
if [ ${#HAS_CHANGES} -gt 0 ]; then
68
58
# Commit changes
69
59
git commit -m '[Automated Commit] Format Codebase'
70
60
# Use the PAT to push changes
71
- git push https://x-access-token:${PAT}@github.com/${{ github.repository }} HEAD:${{ github.ref_name }}
61
+ git push
72
62
fi
You can’t perform that action at this time.
0 commit comments