diff --git a/.github/workflows/syntax-check.yml b/.github/workflows/syntax-check.yml index 0f2aeee..be5da0e 100644 --- a/.github/workflows/syntax-check.yml +++ b/.github/workflows/syntax-check.yml @@ -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 @@ -24,8 +28,8 @@ 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 # Setup Java 17 - uses: actions/setup-java@v4