-
-
Notifications
You must be signed in to change notification settings - Fork 188
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
Error: Resource not accessible by integration when tagging old commit #138
Comments
Update: the action completes successfully if the specified commit is the HEAD of any branch, and fails if it is not. That is unclear, as the branch isn't mentioned in the parameters to the action, or the error message. |
We have the same issue. |
Looks like it actually worked for me when using a PAT as opposed to the baked in |
following the approach on this docs page with the ...
jobs:
build:
permissions:
contents: write
... Failed run: https://github.com/JMaio/actions-playground/actions/runs/4153264354 |
I have an action which is triggered through the GitHub UI, which takes a commit_id as a parameter.
If I specify the latest commit in the repo, the action runs fine.
However, if I specify the commit before (or any previous commit) the tag step fails with an error "Resource not accessible by integration". I understand this is normally a permission problem, but my workflow has full write permissions (and also, what is the different with older commits?).
The behaviour is the same for both lightweight and annotated tags.
Output from the action is as follows.
Debug logging shows the following (some parts omitted).
The text was updated successfully, but these errors were encountered: