-
Notifications
You must be signed in to change notification settings - Fork 419
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
starter-workflow template gives Resource not accessible by integration
#12
starter-workflow template gives Resource not accessible by integration
#12
Comments
Hm, haven't seen that before. Are you able to share your repo by chance (or just the relevant pieces)? |
Hey @damccorm, thanks for the response. |
Hm, so it looks like this is an issue with forks: I'll reach out internally and figure out if that's expected scoping of permissions for the GITHUB_TOKEN and we can go from there |
I just submitted a support ticket about this, but probably should have checked here first! thanks @damccorm |
So it turns out that this is working as intended after all. We can't give write permissions to forks for security reasons (e.g. the forked user changes your yaml file to write bad things to your repo), so this should fail on forks. With that said, the docs are wrong here and need to be updated. Already added actions/starter-workflows#78 to update the template, will also follow up to update docs here. |
Thanks for investigating, @damccorm. And the update seems like a good alternative for my use at least. Others can reopen this if necessary, but I'll close it as it's expected behavior. Just pinging you, @squidsoup to loop you in. |
I spoke too soon. Switching this to cron by itself won't work because we assume its going to be run on a PR. Trying to figure out what makes the most sense here. Option 1 is to just not add labels to forks (but we shouldn't throw like we do now regardless). Option 2 is to update it to filter through all pull requests. In theory I like option 2, but we need to be careful or we'll get rate limited - along those lines, we need a way of skipping PRs that we've already processed - maybe we could add a "triaged" label or something, but that's kind of ugly. Thoughts? My instinct is to start with option 1 - better error handling on forks - and then move on to option 2 as appropriate |
@damccorm option 2 certainly sounds far more useful for us - our workflow has every developer on our project making PRs from their forks (and presumably that's a fairly common workflow). |
Option 1 makes this action useless, as whoever who has write access can put the labels themselves as necessary, though in a repo with 90 percent or more contribution through forks, we really wanted to use this action to reduce manual work. Why can't you just use the default branches labeler.yml as canonical config? |
Yeah, agreed option 2 makes a lot more sense.
The issue isn't getting the |
Could we change the config to use the repo's token, rather than the fork's token? If this works conceptually, we (exercism pps) could experiment more. |
Disable the workflow until a solution to actions/labeler#12 has been found. After the linked issue has been solved, we probably need to also bump the version of the action.
Hello @damccorm, Is there any way or workaround to trigger the action on the base repository so that the GitHub Action token will have both read/write access when there is a PR from the forked repository. And there is no need to re-write the whole code base. |
What is the end solution? |
doesn't work on forks : actions/labeler#12
doesn't work on forks : actions/labeler#12
Attempt to enable the pull request clang format action to work on forked pull requests. Background: - actions/labeler#12 - https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token/
|
* Bump node from 14.17.0 to 20.2.0 in /.docker Bumps node from 14.17.0 to 20.2.0. --- updated-dependencies: - dependency-name: node dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * give permissions to labeler-action ref:actions/labeler#12 --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Christian Alejandro Hormazabal Martin <[email protected]>
* Bump node from 14.17.0 to 20.2.0 in /.docker Bumps node from 14.17.0 to 20.2.0. --- updated-dependencies: - dependency-name: node dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * give permissions to labeler-action ref:actions/labeler#12 --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Christian Alejandro Hormazabal Martin <[email protected]>
* Bump qs from 6.11.0 to 6.11.2 Bumps [qs](https://github.com/ljharb/qs) from 6.11.0 to 6.11.2. - [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md) - [Commits](ljharb/qs@v6.11.0...v6.11.2) --- updated-dependencies: - dependency-name: qs dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * feature/80600-IPO-ønsker-mc-pakke-status-i-selected-scope-info (#766) * Added m1, m02 info + status to selected scope info * removed logging * Formatted the date * Feature/104582 handle scope handed over status (#768) * Added ScopeHandedOver enumm and added to filter * Unable to edit when scope handed over * Removed step created when handed over * Cannot edit when scope handed over * Renamed files * Improve readability for ScopeHandedOver status in search IPO * Rename * Allow admin to delete IPOs with status ScopeHandedOver --------- Co-authored-by: VRiveland <[email protected]> * Feature/104099 ipo lage knapp for å opprette teamsmøte innkallelse frontend (#767) * Added checkbox in invitation to make teamsmeeting * fixed warning with EdsIcon inside button * changed back to edsIcon * Show teamsmeeting as checked on editview * Addes styling to teams meeting checkbox * Changed how teams meeting is shown in view IPO * Changed wording in create IPO * Small changes --------- Co-authored-by: VRiveland <[email protected]> * Feature/80834 UI disable mc pkgs with signed rfoc (#769) * Added operationHandoverStatus on types * set disableCheckbox to true * Disabled checkbox doesnt get selected on selectall * New column in table with checkbox if rfoc accepted * Fixed check all not working properly * Moved RFOC column to before MC column in DP comm table * Disabling MCpkg column i comm table when RFOC is accepted * Removed disabling MC button when RFOC has status accepted --------- Co-authored-by: VRiveland <[email protected]> * docs(readme): remove white spaces to trigger build * fix: package.json & yarn.lock to reduce vulnerabilities (#765) The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-SEMVER-3247795 Co-authored-by: snyk-bot <[email protected]> * Revert "fix: package.json & yarn.lock to reduce vulnerabilities (#765)" (#775) This reverts commit 63d8e17. * Bump node from 14.17.0 to 20.2.0 in /.docker (#759) * Bump node from 14.17.0 to 20.2.0 in /.docker Bumps node from 14.17.0 to 20.2.0. --- updated-dependencies: - dependency-name: node dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * give permissions to labeler-action ref:actions/labeler#12 --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Christian Alejandro Hormazabal Martin <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: AnneSkje <[email protected]> Co-authored-by: VRiveland <[email protected]> Co-authored-by: Kristoffer Steen <[email protected]> Co-authored-by: Kristoffer Steen <[email protected]> Co-authored-by: snyk-bot <[email protected]> Co-authored-by: Christian Hormazabal <[email protected]> Co-authored-by: Christian Alejandro Hormazabal Martin <[email protected]>
* Bump node from 14.17.0 to 20.2.0 in /.docker Bumps node from 14.17.0 to 20.2.0. --- updated-dependencies: - dependency-name: node dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * give permissions to labeler-action ref:actions/labeler#12 --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Christian Alejandro Hormazabal Martin <[email protected]>
* Bump qs from 6.11.0 to 6.11.2 Bumps [qs](https://github.com/ljharb/qs) from 6.11.0 to 6.11.2. - [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md) - [Commits](ljharb/qs@v6.11.0...v6.11.2) --- updated-dependencies: - dependency-name: qs dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * feature/80600-IPO-ønsker-mc-pakke-status-i-selected-scope-info (#766) * Added m1, m02 info + status to selected scope info * removed logging * Formatted the date * Feature/104582 handle scope handed over status (#768) * Added ScopeHandedOver enumm and added to filter * Unable to edit when scope handed over * Removed step created when handed over * Cannot edit when scope handed over * Renamed files * Improve readability for ScopeHandedOver status in search IPO * Rename * Allow admin to delete IPOs with status ScopeHandedOver --------- Co-authored-by: VRiveland <[email protected]> * Feature/104099 ipo lage knapp for å opprette teamsmøte innkallelse frontend (#767) * Added checkbox in invitation to make teamsmeeting * fixed warning with EdsIcon inside button * changed back to edsIcon * Show teamsmeeting as checked on editview * Addes styling to teams meeting checkbox * Changed how teams meeting is shown in view IPO * Changed wording in create IPO * Small changes --------- Co-authored-by: VRiveland <[email protected]> * Feature/80834 UI disable mc pkgs with signed rfoc (#769) * Added operationHandoverStatus on types * set disableCheckbox to true * Disabled checkbox doesnt get selected on selectall * New column in table with checkbox if rfoc accepted * Fixed check all not working properly * Moved RFOC column to before MC column in DP comm table * Disabling MCpkg column i comm table when RFOC is accepted * Removed disabling MC button when RFOC has status accepted --------- Co-authored-by: VRiveland <[email protected]> * docs(readme): remove white spaces to trigger build * fix: package.json & yarn.lock to reduce vulnerabilities (#765) The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-SEMVER-3247795 Co-authored-by: snyk-bot <[email protected]> * Revert "fix: package.json & yarn.lock to reduce vulnerabilities (#765)" (#775) This reverts commit 63d8e17. * Bump node from 14.17.0 to 20.2.0 in /.docker (#759) * Bump node from 14.17.0 to 20.2.0 in /.docker Bumps node from 14.17.0 to 20.2.0. --- updated-dependencies: - dependency-name: node dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * give permissions to labeler-action ref:actions/labeler#12 --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Christian Alejandro Hormazabal Martin <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: AnneSkje <[email protected]> Co-authored-by: VRiveland <[email protected]> Co-authored-by: Kristoffer Steen <[email protected]> Co-authored-by: Kristoffer Steen <[email protected]> Co-authored-by: snyk-bot <[email protected]> Co-authored-by: Christian Hormazabal <[email protected]> Co-authored-by: Christian Alejandro Hormazabal Martin <[email protected]>
* Bump nginx from 1.21.6-alpine to 1.25.0-alpine in /.docker Bumps nginx from 1.21.6-alpine to 1.25.0-alpine. --- updated-dependencies: - dependency-name: nginx dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * feature/80600-IPO-ønsker-mc-pakke-status-i-selected-scope-info (#766) * Added m1, m02 info + status to selected scope info * removed logging * Formatted the date * Feature/104582 handle scope handed over status (#768) * Added ScopeHandedOver enumm and added to filter * Unable to edit when scope handed over * Removed step created when handed over * Cannot edit when scope handed over * Renamed files * Improve readability for ScopeHandedOver status in search IPO * Rename * Allow admin to delete IPOs with status ScopeHandedOver --------- Co-authored-by: VRiveland <[email protected]> * Feature/104099 ipo lage knapp for å opprette teamsmøte innkallelse frontend (#767) * Added checkbox in invitation to make teamsmeeting * fixed warning with EdsIcon inside button * changed back to edsIcon * Show teamsmeeting as checked on editview * Addes styling to teams meeting checkbox * Changed how teams meeting is shown in view IPO * Changed wording in create IPO * Small changes --------- Co-authored-by: VRiveland <[email protected]> * Feature/80834 UI disable mc pkgs with signed rfoc (#769) * Added operationHandoverStatus on types * set disableCheckbox to true * Disabled checkbox doesnt get selected on selectall * New column in table with checkbox if rfoc accepted * Fixed check all not working properly * Moved RFOC column to before MC column in DP comm table * Disabling MCpkg column i comm table when RFOC is accepted * Removed disabling MC button when RFOC has status accepted --------- Co-authored-by: VRiveland <[email protected]> * docs(readme): remove white spaces to trigger build * fix: package.json & yarn.lock to reduce vulnerabilities (#765) The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-SEMVER-3247795 Co-authored-by: snyk-bot <[email protected]> * Revert "fix: package.json & yarn.lock to reduce vulnerabilities (#765)" (#775) This reverts commit 63d8e17. * Bump node from 14.17.0 to 20.2.0 in /.docker (#759) * Bump node from 14.17.0 to 20.2.0 in /.docker Bumps node from 14.17.0 to 20.2.0. --- updated-dependencies: - dependency-name: node dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * give permissions to labeler-action ref:actions/labeler#12 --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Christian Alejandro Hormazabal Martin <[email protected]> * Bump qs from 6.11.0 to 6.11.2 (#761) * Bump qs from 6.11.0 to 6.11.2 Bumps [qs](https://github.com/ljharb/qs) from 6.11.0 to 6.11.2. - [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md) - [Commits](ljharb/qs@v6.11.0...v6.11.2) --- updated-dependencies: - dependency-name: qs dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * feature/80600-IPO-ønsker-mc-pakke-status-i-selected-scope-info (#766) * Added m1, m02 info + status to selected scope info * removed logging * Formatted the date * Feature/104582 handle scope handed over status (#768) * Added ScopeHandedOver enumm and added to filter * Unable to edit when scope handed over * Removed step created when handed over * Cannot edit when scope handed over * Renamed files * Improve readability for ScopeHandedOver status in search IPO * Rename * Allow admin to delete IPOs with status ScopeHandedOver --------- Co-authored-by: VRiveland <[email protected]> * Feature/104099 ipo lage knapp for å opprette teamsmøte innkallelse frontend (#767) * Added checkbox in invitation to make teamsmeeting * fixed warning with EdsIcon inside button * changed back to edsIcon * Show teamsmeeting as checked on editview * Addes styling to teams meeting checkbox * Changed how teams meeting is shown in view IPO * Changed wording in create IPO * Small changes --------- Co-authored-by: VRiveland <[email protected]> * Feature/80834 UI disable mc pkgs with signed rfoc (#769) * Added operationHandoverStatus on types * set disableCheckbox to true * Disabled checkbox doesnt get selected on selectall * New column in table with checkbox if rfoc accepted * Fixed check all not working properly * Moved RFOC column to before MC column in DP comm table * Disabling MCpkg column i comm table when RFOC is accepted * Removed disabling MC button when RFOC has status accepted --------- Co-authored-by: VRiveland <[email protected]> * docs(readme): remove white spaces to trigger build * fix: package.json & yarn.lock to reduce vulnerabilities (#765) The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-SEMVER-3247795 Co-authored-by: snyk-bot <[email protected]> * Revert "fix: package.json & yarn.lock to reduce vulnerabilities (#765)" (#775) This reverts commit 63d8e17. * Bump node from 14.17.0 to 20.2.0 in /.docker (#759) * Bump node from 14.17.0 to 20.2.0 in /.docker Bumps node from 14.17.0 to 20.2.0. --- updated-dependencies: - dependency-name: node dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * give permissions to labeler-action ref:actions/labeler#12 --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Christian Alejandro Hormazabal Martin <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: AnneSkje <[email protected]> Co-authored-by: VRiveland <[email protected]> Co-authored-by: Kristoffer Steen <[email protected]> Co-authored-by: Kristoffer Steen <[email protected]> Co-authored-by: snyk-bot <[email protected]> Co-authored-by: Christian Hormazabal <[email protected]> Co-authored-by: Christian Alejandro Hormazabal Martin <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: AnneSkje <[email protected]> Co-authored-by: VRiveland <[email protected]> Co-authored-by: Kristoffer Steen <[email protected]> Co-authored-by: Kristoffer Steen <[email protected]> Co-authored-by: snyk-bot <[email protected]> Co-authored-by: Christian Hormazabal <[email protected]> Co-authored-by: Christian Alejandro Hormazabal Martin <[email protected]>
Hi there,
I've implemented the exact Labeler workflow as the starter-workflow template in the dir path
.github/workflows/label.yml
.I have also added the
.github/labeler.yml
file with the configuration below:The action is recognised and runs on PR, however the Labeler action resolves with the following error:
Googling seems to relate that error with invalid access to the repo by the action app, so I thought I'd create an issue and disable the action for now, but would be happy to know if there's something I have missed out that will be able to solve this issue for me.
Thanks.
The text was updated successfully, but these errors were encountered: