JasonEtco / build-and-tag-action

📦🔖 A GitHub Action for publishing JavaScript Actions
MIT License
92 stars 38 forks source link

Access Issue? #46

Closed JacobMGEvans closed 11 months ago

JacobMGEvans commented 11 months ago

There seems to be an issue with running this action, I gave it the GitHub Token for access and seems to have issues getting the permissions needed.

https://github.com/cloudflare/wrangler-action/actions/runs/5801118421/job/15724694064

Run JasonEtco/build-and-tag-action@v2
ℹ  info      Updating tag [3.0.1]
ℹ  info      Creating tree
Error: Resource not accessible by integration
✖  fatal     HttpError: Resource not accessible by integration 
    at /home/runner/work/_actions/JasonEtco/build-and-tag-action/v2/dist/index.js:4476:23
    at processTicksAndRejections (node:internal/process/task_queues:96:[5](https://github.com/cloudflare/wrangler-action/actions/runs/5801118421/job/15724694064#step:5:6))
    at async Object.createCommit [as default] (/home/runner/work/_actions/JasonEtco/build-and-tag-action/v2/dist/index.js:1[7](https://github.com/cloudflare/wrangler-action/actions/runs/5801118421/job/15724694064#step:5:8)3[8](https://github.com/cloudflare/wrangler-action/actions/runs/5801118421/job/15724694064#step:5:9)3:18)
    at async buildAndTagAction (/home/runner/work/_actions/JasonEtco/build-and-tag-action/v2/dist/index.js:174[9](https://github.com/cloudflare/wrangler-action/actions/runs/5801118421/job/15724694064#step:5:10)2:20)
JacobMGEvans commented 11 months ago

Figured it out, might want to document this for yourselves, I had to use permissions for contents from here: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions