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

Got error in PR workflow but works well in push #255

Closed
smyle10 opened this issue Dec 4, 2024 · 1 comment
Closed

Got error in PR workflow but works well in push #255

smyle10 opened this issue Dec 4, 2024 · 1 comment

Comments

@smyle10
Copy link

smyle10 commented Dec 4, 2024

Type of issue

Bug Report

Description

Hi, I created a simple workflow to try tfaga and got this error when triggering by PR https://github.com/smyle10/tmt-demo/actions/runs/12157294307/job/33902766420 (while the test job in testing farm passed successfully)

meanwhile, the job triggering by pushing to main branch works all good: https://github.com/smyle10/tmt-demo/actions/runs/12156709370

Reproducer

No response

@jamacku
Copy link
Member

jamacku commented Dec 4, 2024

Hi, the error message suggests that you are missing permissions Resource not accessible by integration. You can't run action on: pull_request. You must use on pull_request_target if you wish to trigger an action when a new PR is opened.

Example: https://github.com/sclorg/testing-farm-as-github-action/blob/main/.github/workflows/base-test-pr-trigger.yml

@github-actions github-actions bot added the type: bug Something isn't working label Dec 4, 2024
@jamacku jamacku removed the type: bug Something isn't working label Dec 5, 2024
@smyle10 smyle10 closed this as completed Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants