Skip to content

Commit

Permalink
Fix workflow fail on actions push
Browse files Browse the repository at this point in the history
Fixed issue where the syntax check job would fail due to no access to push to the repository.
  • Loading branch information
garrettsummerfi3ld committed Feb 18, 2024
1 parent 8e91dd6 commit 09d9a34
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/syntax-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
pull_request:
branches: [ main ]

# Set permissions for the workflow
permissions:
contents: write

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
Expand All @@ -24,6 +28,7 @@ jobs:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
fetch-depth: 0
persist-credentials: false

Expand Down

0 comments on commit 09d9a34

Please sign in to comment.