Skip to content

ci: Only try to push to s3 for same-repo pull requests #110

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

Merged
merged 1 commit into from
Jul 9, 2025
Merged

Conversation

d3zd3z
Copy link
Collaborator

@d3zd3z d3zd3z commented Jun 27, 2025

When running CI on pull requests, the S3 keys needed to push doc changes are only accessible when the pull request comes from the same repo as the project repo. If it is from a clone, these are not available, and the push fails.

Work around this by correctly detecting this case, and avoiding the s3 push in these instances.

As we get more and more outside contributions, this will need to be revisited, possibly with a separate workflow that runs in a different context and has the keys available.

When running CI on pull requests, the S3 keys needed to push doc changes
are only accessible when the pull request comes from the same repo as
the project repo.  If it is from a clone, these are not available, and
the push fails.

Work around this by correctly detecting this case, and avoiding the s3
push in these instances.

As we get more and more outside contributions, this will need to be
revisited, possibly with a separate workflow that runs in a different
context and has the keys available.

Signed-off-by: David Brown <[email protected]>
@d3zd3z d3zd3z requested review from teburd and cfriedt June 27, 2025 17:25
@d3zd3z d3zd3z merged commit cf3241e into main Jul 9, 2025
4 checks passed
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.

2 participants