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
{{ message }}
Repository navigation
codeql/upload-sarif@v2 or @main can't integrate on actions #1806
The error is Error: codeql/upload-sarif action failed: Resource not accessible by integration
My case is try to integrate snyk for sast on my golang code, and then upload sarif file to github to look any vulnerabilities summary.
My workflow actions yaml files:
jobs:
unit_test:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Unit test
continue-on-error: false
run: go test ./...
- name: SAST Test
uses: snyk/actions/golang@master
continue-on-error: true
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
command: code test
args: --sarif-file-output=snyk.sarif
- name: Upload SAST Test Result
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: snyk.sarif
@SPodjasek, can you please open a new issue for this and include the relevant debug logs and your workflow file? (Feel free to redact anything non-public.)
The extra point of #2125 (comment) is beyond the scope of this repository, but if I were you and had the energy, I'd talk to support about the misleading output. (Note: I file lots of tickets including to support -- this is still beyond my energy -- and I already paid the cost to work around the problem.)
Activity
alexet commentedon Jul 26, 2023
You need to add
To allow your workflow to upload the sarif.
archermask commentedon Jul 26, 2023
i have add lines on unit_test job:
still produce same error

alexet commentedon Jul 26, 2023
Would it be possible to rerun the job and check "Enable debug logging" and show the full logs for the
upload-sarifstep?archermask commentedon Jul 26, 2023
Logs is:
btw, env is for package and release docker image later
I put env on global scope, not on job scope. So, the unit_test job can read those env too.
SPodjasek commentedon Feb 2, 2024
I'm observing the same issue. Permissions for

security-eventsare set on job level.aeisenberg commentedon Feb 2, 2024
@SPodjasek, can you please open a new issue for this and include the relevant debug logs and your workflow file? (Feel free to redact anything non-public.)
jsoref commentedon Feb 8, 2024
You're almost certainly facing #2125.
The extra point of #2125 (comment) is beyond the scope of this repository, but if I were you and had the energy, I'd talk to support about the misleading output. (Note: I file lots of tickets including to support -- this is still beyond my energy -- and I already paid the cost to work around the problem.)
megalinter: upload-sarif needs more permissons?