Closed stevenengland closed 2 weeks ago
Worked for me as well. This is the relevant documentation: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
This is my working action: https://github.com/KyleKing/calcipy_template/blob/3392412f1c14d8bf809e32a9f46551c9556078a5/.ctt/default/.github/workflows/labeler.yml
I had what I believe is the same issue, although when I set permissions.issues: write
, it was unable to check out the repository, så I needed this to make it work:
permissions:
contents: read
issues: write
Hi, this is more a question/suggestion than an issue :)
In my newest repo the default permission for the GITHUB_TOKEN is restrictive (don't know if the default for that changed in the nearer past). That given it was not sufficient to use this token like in your README:
Instead I needed to add dedicated permissions to the job like so:
Can you confirm that? And might it be senseful to add a block into the readme section for that case?
KR