top of page

Resource not accessible by integration | Github Action with github-script



I created a simple GitHub workflow which uses actions/github-script@v6 which makes it easy to quickly write a Javscript code in your workflow that uses the GitHub API and the workflow run context. Also, the cool thing about using it is if you are making API calls to your own repo, the authorization built-in!


However, when I ran it, it gave me below error.

While there were plethora of articles with various solutions out there, none seemed to work.

Eventually, I realized to check the settings set for the actions and it didn't have required read-write workflow permissions (Duh!). With below changed settings, it worked as expected.

15 views0 comments

Comments


bottom of page