Skip to content

Commit

Permalink
Merge pull request #724 from mcserep/codeql-toplevel-permission
Browse files Browse the repository at this point in the history
Move CodeQL workflow permissions to the top level
  • Loading branch information
intjftw authored Apr 28, 2024
2 parents fe1b8fb + b004bcc commit 194afa2
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,18 @@ on:
schedule:
- cron: '22 16 * * 5'

permissions:
# required for all workflows
security-events: write
# only required for workflows in private repositories
actions: read
contents: read

jobs:
analyze-jsts:
name: Analyze JavaScript-TypeScript
runs-on: ubuntu-22.04
timeout-minutes: 360
permissions:
# required for all workflows
security-events: write
# only required for workflows in private repositories
actions: read
contents: read

steps:
- name: Checkout repository
Expand All @@ -45,12 +46,6 @@ jobs:
DOWNLOAD_PATH: ${{github.workspace}}/dependencies/download
runs-on: ubuntu-22.04
timeout-minutes: 360
permissions:
# required for all workflows
security-events: write
# only required for workflows in private repositories
actions: read
contents: read

steps:
- name: Checkout repository
Expand Down

0 comments on commit 194afa2

Please sign in to comment.