Nice3point / RevitTemplates

Templates for creating Revit add-ins
MIT License
212 stars 31 forks source link

ForbiddenException: Resource not accessible by integration when running Nuke #36

Closed Yuvdal closed 1 year ago

Yuvdal commented 1 year ago

Hello,

While executing the Nuke build automation tool, the process encounters a "ForbiddenException" with the error message indicating that a resource is not accessible by the integration. This issue occurs during the execution of a specific target, resulting in the failure of the build process. This happened after moving a project from an individual account to an organization on GitHub.

Any idea what can be the reason?

Thanks, Yuval

2023-06-12_8-06-16

Nice3point commented 1 year ago

I guess you don't have repository permissions to create a release on GitHub. Check the access rights of your account in the organisation

Yuvdal commented 1 year ago

Indeed that was the problem. I had to change the workflow permissions to "read and write permissions". Thank you!

gaborschnierer commented 1 year ago

A bit more info. For personal GitHub accounts, you don't have an organisation. What I did (probably the same as @Yuvdal) is add permissions to the workflow file.

name: Workflow

on: push: branches:

permissions: write-all

jobs: windows: name: windows-2022 runs-on: windows-2022 steps: