-
-
Notifications
You must be signed in to change notification settings - Fork 176
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
[BUG] When running in a workflow generated by a dependabot BUMP PR, the action fails #268
Comments
Thanks for reporting this issue. |
That’s due to the fact that dependabot doesn’t have access to your GitHub secrets. I’ll suggest using |
Which of the two issues do you mean? I am now getting this even on PRs that are not created by dependabot
|
Can you post the code that you currently have running |
It is weird because this was working OK. It is like something has gone pear-shaped on the remote as a result of the dependabot runs. Is this creating a fiel on the remote? |
If the errors are for the dependabot PR’s I’ll recommend re-running them manually. The less secure option would be to change the event to Long term recommendation: Skip steps that don’t need to run when dependabot PR’s are created or taking a look at renovate bot which doesn’t run into the same issue. |
As I said, I am now getting this error with my own push and pull requests. Not via dependabot. |
Did something change on your main branch ? You might have to use |
Yeah I have that
|
Weird - pushed another random change it it started working again. So back to dependabot, what would the recommendation be again? |
I will just skip the tests - which is a bit annoying because I have loads of checks, so they all appear (for each dependabot PR) as skipped when I would rather not see them at all. Anyway, thanks for the help. |
Sorry but will have to re-open this. Is still get this randomly on workflows that are triggered by me. When I make a "push" I get several workflows triggered at once. Since they run on different runners, it is entirely possible that two or more workflows run simultaneously on the same repo. I then get this:
|
Can you get all related log information that can be used to debug this as it's unclear from the error message you posted above |
@kpturner This should be resolved in the latest release |
I am wondering how |
Is there an existing issue for this?
Does this issue exist in the latest version?
Describe the bug?
When dependabot creates a PR to bump a package, calls to this action results in one of two errors
or
To Reproduce
Simply create a workflow that triggers on Pull Requests and uses
tj-actions/changed-files@v11.7
If dependabot creates the PR, then the action fails.
What OS are you seeing the problem on?
ubuntu-latest or ubuntu-20.04
Expected behavior?
Should work just the same as if a normal user created a PR
Relevant log output
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: