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

Use the Actions artifacts client to avoid needing the actions: read permission #288

Merged
merged 19 commits into from
Dec 22, 2023

Conversation

@ntkme
Copy link

ntkme commented Dec 20, 2023

@JamesMGreene My own test shows that actions: read does not need to be specified at all, and it was not the issue (things are failing the same way with or without it). The real issue is that createPagesDeployment is calling POST /repos/{owner}/{repo}/pages/deployments with artifact_id, but that API only takes artifact_url, which I'm trying to fix in #287. Using actions artifacts client does not really change that behavior so it likely won't fixes the issue.

@kphrx
Copy link

kphrx commented Dec 20, 2023

artifact_id is a new api parameter used from #251. if reverting, maybe unnecessary v4.

@JamesMGreene JamesMGreene mentioned this pull request Dec 20, 2023
TheMrMilchmann added a commit to TheMrMilchmann/committing-crimes.com that referenced this pull request Dec 21, 2023
TheMrMilchmann added a commit to Osmerion/osmerion.github.io that referenced this pull request Dec 22, 2023
@JamesMGreene JamesMGreene marked this pull request as ready for review December 22, 2023 17:41
@JamesMGreene JamesMGreene requested a review from a team as a code owner December 22, 2023 17:41
@JamesMGreene
Copy link
Contributor Author

JamesMGreene commented Dec 22, 2023

Failures from a workflow run using actions/deploy-pages@v4 without also granting actions: read permission:

permissions failure

After switching to use this PR branch for `actions/deploy-pages`, the same workflow succeeded without any errors. 🎉 🚀

yoannchaudet
yoannchaudet previously approved these changes Dec 22, 2023
Copy link
Collaborator

@yoannchaudet yoannchaudet left a comment

Choose a reason for hiding this comment

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

No blocking comments from me!

@JamesMGreene JamesMGreene merged commit d8af841 into main Dec 22, 2023
6 checks passed
@JamesMGreene JamesMGreene deleted the use-artifacts-client branch December 22, 2023 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants