Skip to content

Commit

Permalink
chore: Update eslint workflow and permissions
Browse files Browse the repository at this point in the history
```text
Update the eslint workflow to include environment variables, concurrency settings, and permissions for writing contents. This ensures proper execution and access for the workflow.
```
  • Loading branch information
ZanzyTHEbar committed Jun 26, 2024
1 parent 10ef0d8 commit f75b03e
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,22 @@ on:
# The branches below must be a subset of the branches above
branches: ["main"]

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: write

jobs:
eslint:
defaults:
run:
working-directory: ./vscode-workspaces-gnome

name: Run eslint scanning
runs-on: ubuntu-latest
permissions:
Expand All @@ -34,4 +48,4 @@ jobs:
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: eslint-results.sarif
wait-for-processing: true
wait-for-processing: true

0 comments on commit f75b03e

Please sign in to comment.