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

Add permission to workflow #126

Merged
merged 1 commit into from
Jun 3, 2024
Merged

Conversation

Fweddi
Copy link
Contributor

@Fweddi Fweddi commented Jun 3, 2024

Paired on with @rhystmills.

Currently our deploys are failing due to an auth error:

> gh-pages -d dist -u "github-actions-bot <[email protected]>"

remote: Permission to guardian/editions-card-builder.git denied to github-actions[bot].
fatal: unable to access 'https://github.com/guardian/editions-card-builder.git/': The requested URL returned error: 403

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] deploy: `gh-pages -d dist -u "github-actions-bot <[email protected]>"`
npm ERR! Exit status 1

Following the pattern outlined in tschaub/gh-pages#429 (comment), we are adding permissions to the workflow to hopefully fix this issue.

Copy link

@rhystmills rhystmills left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We tested the workflow and it works as intended 👍

@Fweddi Fweddi merged commit 2ba2e92 into main Jun 3, 2024
2 checks passed
@Fweddi Fweddi deleted the fp/rm/add-permission-to-workflow branch June 3, 2024 15:39
@prout-bot
Copy link

Seen on PROD (merged by @Fweddi 1 minute and 12 seconds ago) Please check your changes!

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

Successfully merging this pull request may close these issues.

3 participants