Skip to content

Commit

Permalink
Update format.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunsuresh committed Jan 2, 2025
1 parent 9825d35 commit 7be8b1c
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,6 @@ jobs:
format-code:
runs-on: ubuntu-latest
steps:
- name: Retrieve secrets from Keeper
id: ksecrets
uses: Keeper-Security/ksm-action@master
with:
keeper-secret-config: ${{ secrets.KSM_CONFIG }}
secrets: |-
v2h4jKiZlJywDSoKzRMnRw/field/Access Token > env:PAT # Fetch PAT and store in environment variable
- name: Checkout code
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -58,8 +50,6 @@ jobs:
done
- name: Commit and push changes
env:
PAT: ${{ env.PAT }} # Use PAT fetched from Keeper
run: |
HAS_CHANGES=$(git diff --staged --name-only)
if [ ${#HAS_CHANGES} -gt 0 ]; then
Expand All @@ -68,5 +58,5 @@ jobs:
# Commit changes
git commit -m '[Automated Commit] Format Codebase'
# Use the PAT to push changes
git push https://x-access-token:${PAT}@github.com/${{ github.repository }} HEAD:${{ github.ref_name }}
git push
fi

0 comments on commit 7be8b1c

Please sign in to comment.