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

Attempt to fix deployments by tweaking github actions #870

Merged
merged 6 commits into from
Feb 8, 2024
Merged

Conversation

huwd
Copy link
Member

@huwd huwd commented Feb 8, 2024

I'm suspicious that some of our actions aren't acting like they should.

I've updated the deploy artifact action,
Also added a suggested permission fix in from their README (my current main theory here, see commit for why).

Whilst I was there updated others.

It's bundling a few things, but can drop commits if folks disagree.
Would be nice to work with a clean slate of steps that mirror their readmes.

huwd added 6 commits February 8, 2024 14:09
Looking at the README.md for the upload-pages-artifact repo it calls out
the file permissions can often be an issue here.

https://github.com/actions/upload-pages-artifact?tab=readme-ov-file#file-permissions

Note we're using ubuntu-latest for these actions so let's take the Linux
permissions fix.

Why am I looking at permissions?
Here's our failure:
https://github.com/alphagov/gds-way/actions/runs/7830155355/job/21363559363

Deploy to GitHubPages calls out:
Artifact exchange URL:
https://pipelinesghubeus2.actions.githubusercontent.com/Ke52u2ZSbeIIRVMfUZSHU6nygLdHv4s1RfZ82XduCzcNKbxtLt/_apis/pipelines/workflows/7830155355/artifacts?api-version=6.0-preview

Which as the suspicious message:
```
message	"The user 'System:PublicAccess;aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa' is not authorized to access this resource."
```
Easier to read if you indent a list, and let's use " everywhere
Doing spring cleaning updates whilst I'm here
Doing spring clearning updates whilst here
Doing spring cleaning updates whilst I'm here
Copy link
Contributor

@alexbishop1 alexbishop1 left a comment

Choose a reason for hiding this comment

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

🤞

@huwd huwd merged commit 4e5ff1d into main Feb 8, 2024
1 check passed
@huwd huwd deleted the fix-deploys branch February 8, 2024 14:20
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

Successfully merging this pull request may close these issues.

3 participants