Skip to content

Error: Resource not accessible by integration #282

@MisinformedDNA

Description

@MisinformedDNA

The docs say this:

You might get an error whent the action is run. If you open the error log and see something like this:

"Error: Resource not accessible by integration"

To fix this, go to https://github.com/{owner}/{repo}/settings/actions and in Workflow Permissions section give actions Read and Write permissions. That provides the token with rights to modify your repo and solves your problem.

A) whent should be when
B) The job still succeeds with a 403
C) Consider augmenting the documentation to use

jobs:
  workitem-check:
    name: Description contains AB# with a valid work item id
    runs-on: ubuntu-latest
    permissions:
      pull-requests: write
      issues: write
      contents: read
    steps:
      - uses: danhellem/[email protected]
        with:
          repo-token: ${{ secrets.GITHUB_TOKEN }}

This may be easier for people to understand and the setting you mention can be disabled by orgs/enterprises (like mine):

Image

Request:

  • Fix spelling
  • Make job fail when it should
  • Improve documentation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions