summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2021-08-16 00:56:48 -0400
committerJay Satiro <raysatiro@yahoo.com>2021-08-17 03:32:10 -0400
commit4729c251800d5defcbca3afe68a05887f3179a34 (patch)
treec2b82e180c2a7b50af57a4fba37831a601ab9acc
parentb654fb4cd3dda9871efb81b0942b8a80e5e81c6a (diff)
downloadcurl-4729c251800d5defcbca3afe68a05887f3179a34.tar.gz
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
-rw-r--r--.github/workflows/codeql-analysis.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index 36d44b678..5f8b86f26 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