Skip to content

Commit 7be8b1c

Browse files
committed
Update format.yml
1 parent 9825d35 commit 7be8b1c

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

.github/workflows/format.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,6 @@ jobs:
1212
format-code:
1313
runs-on: ubuntu-latest
1414
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-
2315
- name: Checkout code
2416
uses: actions/checkout@v4
2517
with:
@@ -58,8 +50,6 @@ jobs:
5850
done
5951
6052
- name: Commit and push changes
61-
env:
62-
PAT: ${{ env.PAT }} # Use PAT fetched from Keeper
6353
run: |
6454
HAS_CHANGES=$(git diff --staged --name-only)
6555
if [ ${#HAS_CHANGES} -gt 0 ]; then
@@ -68,5 +58,5 @@ jobs:
6858
# Commit changes
6959
git commit -m '[Automated Commit] Format Codebase'
7060
# 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
7262
fi

0 commit comments

Comments
 (0)