`Error: HttpError: Resource not accessible by integration` when uploading SARIF to code scanning.
IntermediateTroubleshootingPermissions, Tokens & Secrets
Answer
Likely causes → Missing security-events: write; on private repos, also actions: read for the upload action to read run info, and code scanning (GitHub Advanced Security) not enabled.
Diagnose → Check permissions block and repo security settings.
Fix →
permissions:
contents: read
security-events: write
actions: read
Prevent → Use a shared scan workflow with correct permissions baked in.
More on Permissions, Tokens & Secrets
`Error: Resource not accessible by integration` when a workflow tries to comment on a PR.Beginner`remote: Permission to devopsshack/shack-api.git denied to github-actions[bot]. fatal: unable to access 'https://github.com/devopsshack/shack-api/': The requested URL returned error: 403`Beginner`fatal: could not read Username for 'https://github.com': terminal prompts disabled` when cloning a second private repo.BeginnerA secret is empty in the workflow even though it is set in Settings.Beginner`Error: Input required and not supplied: token` on a fork PR.BeginnerReleases created by a workflow do not trigger the `on: release` deploy workflow.Intermediate