From 4729c251800d5defcbca3afe68a05887f3179a34 Mon Sep 17 00:00:00 2001 From: Jay Satiro Date: Mon, 16 Aug 2021 00:56:48 -0400 Subject: [PATCH] codeql: fix error "Resource not accessible by integration" - Enable codeql writing security-events. GitHub set the default permissions to read, apparently since earlier this year. Ref: https://github.com/github/codeql-action/issues/464 Ref: https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token/ Fixes https://github.com/curl/curl/issues/7575 Closes https://github.com/curl/curl/pull/7576 --- .github/workflows/codeql-analysis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 36d44b6785..5f8b86f26b 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -13,6 +13,9 @@ on: schedule: - cron: '0 0 * * 4' +permissions: + security-events: write + jobs: codeql: runs-on: ubuntu-latest