You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RequestError [HttpError]: Resource not accessible by integration
at /home/runner/work/_actions/github/codeql-action/v1/node_modules/@octokit/request/dist-node/index.js:66:[2](https://github.com/etcd-io/etcd/runs/6141920349?check_suite_focus=true#step:3:2)[3](https://github.com/etcd-io/etcd/runs/6141920349?check_suite_focus=true#step:3:3)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Job.doExecute (/home/runner/work/_actions/github/codeql-action/v1/node_modules/bottleneck/light.js:[4](https://github.com/etcd-io/etcd/runs/6141920349?check_suite_focus=true#step:3:4)0[5](https://github.com/etcd-io/etcd/runs/6141920349?check_suite_focus=true#step:3:5):18) {
status: 403,
In general, that error usually indicates something wrong with GitHub Actions token permissions.
It looks like you've changed your default token permissions to be restrictive by default without updating the workflow to include the permissions needed for Code Scanning.
I don't think we introduced any breaking changes in this case. These permissions have been the suggested defaults for a long time. You can check out the readme on https://github.com/github/codeql-action for the details.
@MathiasVP Not necessarily the same issue, but I am receiving same error while fetching dependabot issues via a graphql query, I tried with permissions: write-all as well but no luck. I can execute same query with my PAT with
repo permissions(i.e Full control of private repositories) but unable to fetch with default token, not sure what exactly is the reason or issue here.
In general, that error usually indicates something wrong with GitHub Actions token permissions.
It looks like you've changed your default token permissions to be restrictive by default without updating the workflow to include the permissions needed for Code Scanning.
Activity
serathius commentedon Apr 25, 2022
Heh, this is not a question, but a bug report.
cc @adityasharad
MathiasVP commentedon Apr 25, 2022
Hi @serathius,
In general, that error usually indicates something wrong with GitHub Actions token permissions.
It looks like you've changed your default token permissions to be restrictive by default without updating the workflow to include the permissions needed for Code Scanning.
Updating the permissions to:
should fix your issue.
serathius commentedon Apr 25, 2022
Thanks for info, however please stop introducing breaking changes in
v1version.MathiasVP commentedon Apr 25, 2022
I don't think we introduced any breaking changes in this case. These permissions have been the suggested defaults for a long time. You can check out the readme on https://github.com/github/codeql-action for the details.
L3m0nb4tt3ry commentedon Sep 19, 2022
@MathiasVP Not necessarily the same issue, but I am receiving same error while fetching dependabot issues via a graphql query, I tried with
permissions: write-allas well but no luck. I can execute same query with myPATwithrepo permissions(i.e Full control of private repositories) but unable to fetch with default token, not sure what exactly is the reason or issue here.
MathiasVP commentedon Sep 26, 2022
Hi @L3m0nb4tt3ry,
Thanks for posting! We'll be happy to take a look at your situation. Would you mind opening a fresh issue with this?
Update CodeQL workflow.
Update CodeQL workflow. (#952)
Allow Action to write security events
Allow Action to write security events
ci: Add write permission to security events when building ig.
ci: Add write permission to security events when building ig.
Extend permissions to upload security reports that we reuse for TLAi.
Update codeql-analysis.yml
Update codeql-analysis.yml (#14)
CI: fix CodeQL permissions
CI: fix CodeQL permissions
fix token permissions for codeql
fix token permissions for codeql
Fixing CodeQL permissions - see github/codeql#8843
Fixing CodeQL permissions - see github/codeql#8843
Configure permissions for codeql
Configure permissions for codeql (#1583)
crisdosaygo commentedon Sep 27, 2024
Thank you @MathiasVP that fixed it for us
chore: give correct permission to codeql
ci: update permissions for CodeQL action