Workflow can't seem to access organisation secret #202954
Unanswered
Southpaw1496
asked this question in
Actions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Question
💬 Feature/Topic Area
Workflow Configuration
Discussion Details
A few years ago, I built a GitHub Actions workflow to build and deploy a website. This has worked well, but when I copied the workflows over to a new site, they don't work and I can't figure out why.
Background
The build and deploy processes are both reusable workflows inside their own jobs:
The built website is uploaded as an artefact and then downloaded by the publish job:
secrets.COZY_PATis a Personal Access Token which has Repository and Actions read-and-write permissions for both repositories, though it was only granted permission for the new repository after the secret had been set. It's an organisation secret, so they both should be able to access it. However, in the new repository, theactions/download-artefactstep fails with a 401 error. Why would it work in one repository and not the other?All reactions