release-tracker-action
release-tracker-action copied to clipboard
gh: Resource not accessible by integration (HTTP 403)
Hi, it seems to fail to create v1 while it successfully create other tags.
Here: https://github.com/a5k-testing/github-action-test/runs/4240313967
Log:
Run bewuethr/release-tracker-action@v1
with:
update-latest: true
update-minor: false
env:
GITHUB_TOKEN: ***
Run if [[ true == 'true' ]]; then
if [[ true == 'true' ]]; then
params+=('-l')
fi
if [[ false == 'true' ]]; then
params+=('-m')
fi
'/home/runner/work/_actions/bewuethr/release-tracker-action/v1/tagupdater' "${params[@]}"
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
env:
GITHUB_TOKEN: ***
Building tag table...
Checking latest...
Deleting latest...
Deleted tag 'latest' (was 4283631)
To https://github.com/a5k-testing/github-action-test
- [deleted] latest
Creating annotated tag latest pointing to same commit as v2.0.1...
Creating tag object for latest...
Creating tag reference...
{
"ref": "refs/tags/latest",
"node_id": "REF_kwDOGGkkprByZWZzL3RhZ3MvbGF0ZXN0",
"url": "https://api.github.com/repos/a5k-testing/github-action-test/git/refs/tags/latest",
"object": {
"sha": "18bd536506d6f50574cbd155b389bca8e0a4a7f6",
"type": "tag",
"url": "https://api.github.com/repos/a5k-testing/github-action-test/git/tags/18bd536506d6f50574cbd155b389bca8e0a4a7f6"
}
}
Checking v2...
Deleting v2...
Deleted tag 'v2' (was 8adf487)
To https://github.com/a5k-testing/github-action-test
- [deleted] v2
Creating annotated tag v2 pointing to same commit as v2.0.1...
Creating tag object for v2...
Creating tag reference...
{
"ref": "refs/tags/v2",
"node_id": "REF_kwDOGGkkpqxyZWZzL3RhZ3MvdjI",
"url": "https://api.github.com/repos/a5k-testing/github-action-test/git/refs/tags/v2",
"object": {
"sha": "7f0ec02ae21a4ded7ddf847a0121c119174ad918",
"type": "tag",
"url": "https://api.github.com/repos/a5k-testing/github-action-test/git/tags/7f0ec02ae21a4ded7ddf847a0121c119174ad918"
}
}
Checking v1...
Creating annotated tag v1 pointing to same commit as v1.1.0...
Creating tag object for v1...
Creating tag reference...
gh: Resource not accessible by integration (HTTP 403)
{
"message": "Resource not accessible by integration",
"documentation_url": "https://docs.github.com/rest/reference/git#create-a-reference"
}
Checking v0...
v0 already points to same commit as v0.1.0, skipping...
I'll have a look this weekend, can you leave that repo up so I have access to the logs and can fork it to test stuff locally?
It is just a test repo, I will leave it for a while.
But there is a problem, I have previously set 3 days for log retention. I have now changed to 30 days but I'm not sure if it apply to previous logs; so it is possible that they will disappear soon.
I can reproduce this in a clone of your repo, but I don't understand why it happens. When running the action locally, trying to create the reference even returns a 404 not found, but only for v1
and v0
; v2
and latest
work fine.
When using a personal access token with repo
scope instead of the standard GITHUB_TOKEN
, the workflow running online now also gets
gh: Not Found (HTTP 404)
{
"message": "Not Found",
"documentation_url": "https://docs.github.com/rest/reference/git#create-a-reference"
}
I'm afraid I seem to be unable to understand why this happens.
It's been a while 😅 Was this per chance caused by missing write permissions for the GITHUB_TOKEN
? The example in the README has just been updated to show how to set them.