Skip to content

Commit

Permalink
codeql: fix error "Resource not accessible by integration"
Browse files Browse the repository at this point in the history
- Enable codeql writing security-events.

GitHub set the default permissions to read, apparently since earlier
this year.

Ref: github/codeql-action#464
Ref: https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token/

Fixes #7575
Closes #7576
  • Loading branch information
jay committed Aug 17, 2021
1 parent b654fb4 commit 4729c25
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
schedule:
- cron: '0 0 * * 4'

permissions:
security-events: write

jobs:
codeql:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 4729c25

Please sign in to comment.