Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PRs from forks cannot upload reports #3

Closed
daniel-beck opened this issue Feb 23, 2022 · 8 comments · Fixed by #5
Closed

PRs from forks cannot upload reports #3

daniel-beck opened this issue Feb 23, 2022 · 8 comments · Fixed by #5
Assignees

Comments

@daniel-beck
Copy link
Contributor

Originally reported in https://groups.google.com/g/jenkinsci-dev/c/OMe_zN8-Tkc/m/xuzonAElAgAJ

It probably happens because it's a PR from a fork and the GITHUB_TOKEN used only has read permission for SecurityEvents.

@daniel-beck daniel-beck self-assigned this Feb 23, 2022
@daniel-beck
Copy link
Contributor Author

daniel-beck commented Feb 23, 2022

@daniel-beck
Copy link
Contributor Author

Tried it with the GitHub-provided action but it does not compute the commit_oid parameter correctly.

Submitted https://support.github.com/ticket/personal/0/1517478

@daniel-beck
Copy link
Contributor Author

daniel-beck commented Feb 26, 2022

It looks like github/codeql-action#944 is basically the same issue, except the GITHUB_WORKSPACE is not a wrong repo (which will fail the upload), but instead no GitHub repo at all. When every checkout in this workflow has a path, it behaves as described there.

@daniel-beck
Copy link
Contributor Author

Filed github/codeql-action#952

@offa
Copy link
Contributor

offa commented Feb 27, 2022

I get the error too, re-running usually works though.

curl: (22) The requested URL returned error: 403 
Failed to upload results

@jglick
Copy link

jglick commented Feb 28, 2022

Do repositories already using the workflow from template need to make any changes other than perhaps accepting Dependabot action updates?

@jglick
Copy link

jglick commented Mar 9, 2022

jenkinsci/mercurial-plugin#200 I guess?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants