From f75b03e168dd817d5a948d2f727e4d91867debfa Mon Sep 17 00:00:00 2001 From: ZanzyTHEbar Date: Wed, 26 Jun 2024 12:01:22 +0100 Subject: [PATCH] chore: Update eslint workflow and permissions ```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. ``` --- .github/workflows/eslint.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index 1430334..72ef7f8 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -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: @@ -34,4 +48,4 @@ jobs: uses: github/codeql-action/upload-sarif@v2 with: sarif_file: eslint-results.sarif - wait-for-processing: true \ No newline at end of file + wait-for-processing: true