Skip to content
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

Error: Resource not accessible by integration #239

Open
kdemon1011 opened this issue Jun 6, 2023 · 4 comments
Open

Error: Resource not accessible by integration #239

kdemon1011 opened this issue Jun 6, 2023 · 4 comments

Comments

@kdemon1011
Copy link

kdemon1011 commented Jun 6, 2023

Hi
I am using V3.15.1 and getting the following error. We have the GitHub Enterprise version.
Error: Resource not accessible by integration

and this is the configuration

 - uses: 8398a7/action-slack@v3.15.1
        with:
          github_base_url: https://github.com/data-sentinel-ai
          status: ${{ job.status }}
          fields: repo,message,commit,author,action,eventName,ref,workflow,job,took # selectable (default: repo,message)
        env:
          SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required
        if: always() # Pick up events even if the job fails or is canceled.

Can you help us to resolve the issue? Thanks

@vijaybaliah
Copy link

Hi I am using V3.15.1 and getting the following error. We have the GitHub Enterprise version. Error: Resource not accessible by integration

and this is the configuration

 - uses: 8398a7/action-slack@v3.15.1
        with:
          github_base_url: https://github.com/data-sentinel-ai
          status: ${{ job.status }}
          fields: repo,message,commit,author,action,eventName,ref,workflow,job,took # selectable (default: repo,message)
        env:
          SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required
        if: always() # Pick up events even if the job fails or is canceled.

Can you help us to resolve the issue? Thanks

got this same error when using GitHub Enterprise version

@bemaverick
Copy link

any solution for this?

@maersu
Copy link

maersu commented Nov 24, 2023

Got it working for our enterprise with permissions in jobs and github_base_url in with (see README on the buttom)

jobs:
  first-job:
    name: First Job
    runs-on: ubuntu-latest
    permissions:
      contents: read
      actions: read
    steps:
      - uses: actions/checkout@v3
      - uses: 8398a7/action-slack@v3
        with:
          github_base_url: https://github.com/enterprises/gobugfree
          status: custom
          fields: repo,message,commit,author,action,eventName,ref,workflow,job,took,pullRequest
          custom_payload: |
          .........

@saintevil
Copy link

saintevil commented Apr 3, 2024

To fix and resolve:

Go to the effected GitHub repository to where the error is happening
Select Settings -> Actions -> General
Change to read and write permissions

https://thomasthornton.cloud/2024/01/31/github-action-error-resource-not-accessible-by-integration-when-attempting-to-upload-sarif-report-files-to-github/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants