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

After update, Error 403: Resource not accessible by integration #129

Closed
Gwindalmir opened this issue Oct 12, 2021 · 9 comments
Closed

After update, Error 403: Resource not accessible by integration #129

Gwindalmir opened this issue Oct 12, 2021 · 9 comments

Comments

@Gwindalmir
Copy link

Gwindalmir commented Oct 12, 2021

After the most recent update, I get an error when running the action:
Error 403: Resource not accessible by integration

Here's the action:

    - uses: ncipollo/release-action@v1
      name: Publish Release
      id: publish-release
      with:
        artifacts: "**/*WorkshopTool*.zip"
        token: ${{secrets.GITHUB_TOKEN}}
        name: Workshop Tool v${{steps.changelog.outputs.version-prefix}}
        tag: v${{steps.changelog.outputs.version}}
        commit: master
        draft: ${{github.event.inputs.draft}}
        prerelease: ${{github.event.inputs.prerelease}}
        allowUpdates: true
        body: |
          Changelog:
          ${{env.CHANGELOG}}
          

https://github.com/Gwindalmir/SEWorkshopTool/runs/3874862024?check_suite_focus=true

Output snippet:

  with:
    artifacts: **/*WorkshopTool*.zip
    token: ***
    name: Workshop Tool v0.7.14
    tag: v0.7.14-alpha
    commit: master
    draft: true
    prerelease: true
    allowUpdates: true
    body: Changelog:
  - fa365ce Include git hash in logged version output.

[... trimmed ...]  
    omitBody: false
    omitBodyDuringUpdate: false
    omitName: false
    omitNameDuringUpdate: false
    omitPrereleaseDuringUpdate: false
    removeArtifacts: false
  env:
    SOLUTION_FILE_PATH: WorkshopTool.sln
    BUILD_CONFIGURATION: Release
    BUILD_FRAMEWORK: net461
    CHANGELOG: - fa365ce Include git hash in logged version output.
[... more snipped ...]
  - d0fb454 Implement powershell pre-build script to automatically create a link to the SE and ME game binaries. This is an alternative implementation for PR #34. If the game is installed, it will be automatically detected.
Error: Error 403: Resource not accessible by integration
@Gwindalmir
Copy link
Author

Gwindalmir commented Oct 12, 2021

Nevermind, apparently I couldn't use GITHUB_TOKEN anymore and had to add a personal access token to my repo.
I did that and the issue has been resolved.
Except now the release is listed as done by me, instead of the action bot.

@florian30491
Copy link

Nevermind, apparently I couldn't use GITHUB_TOKEN anymore and had to add a personal access token to my repo. I did that and the issue has been resolved. Except now the release is listed as done by me, instead of the action bot.

Hi @Gwindalmir

do you have an idea, why this was not possible to use anymore ? I am currently facing an similar problem on a GitHub Enterprise server. Did you have this issue on github.com ?

BR,
Florian

@Gwindalmir
Copy link
Author

Gwindalmir commented Apr 22, 2022

Nevermind, apparently I couldn't use GITHUB_TOKEN anymore and had to add a personal access token to my repo. I did that and the issue has been resolved. Except now the release is listed as done by me, instead of the action bot.

Hi @Gwindalmir

do you have an idea, why this was not possible to use anymore ? I am currently facing an similar problem on a GitHub Enterprise server. Did you have this issue on github.com ?

BR, Florian

Unfortunately, no. It was github.com though.
I don't understand how they work, and I still get emails from github saying I'm using the wrong type of token in other applications.
I just don't understand what I'm supposed to do.

@vzhd1701
Copy link

vzhd1701 commented May 4, 2022

Had the same issue recently. Fixed it by going to project's settings -> actions -> general and setting Workflow permissions to Read and write permissions.

@MarkEnverus
Copy link

I'm facing the same issue w/ Github.com - i can't even use a personal token - if i do that I get the error "Error: Error undefined: Parameter token or opts.auth is required"

@florian30491
Copy link

@MarkEnverus

I'm facing the same issue w/ Github.com - i can't even use a personal token - if i do that I get the error "Error: Error undefined: Parameter token or opts.auth is required"

With the newest Version of GitHub Enterprise Server the action is working as expected.

@bmos
Copy link

bmos commented Jan 30, 2024

unfortunately

permissions:
    contents: write

wasn't enough (and I didn't want to allow write in every action).

permissions: write-all

worked :)

@Eboubaker
Copy link

Had the same issue recently. Fixed it by going to project's settings -> actions -> general and setting Workflow permissions to Read and write permissions.

If the project is under a repository you need to change it from the repository settings

@iTrooz
Copy link

iTrooz commented Jun 20, 2024

Simply adding

permissions:
  contents: write

worked for me

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

7 participants