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

CI checkout SHA1 digests and work for both local and remote forks #473

Merged
merged 6 commits into from
Nov 1, 2024

Conversation

btlogy
Copy link
Collaborator

@btlogy btlogy commented Nov 1, 2024

Part of #462

Since #467, CI checkout the code via https.
However, this has broken CI for builds triggered by PR from forks (vs branches within the project).
For instance here:

fatal: Remote branch pull/466 not found in upstream origin

This PR should fix this by using the correct user and repo names (the remote/GitHub ones instead of the CircleCI ones).

In addition, the checkout will now use (and print) the SHA1 digest instead of the branch name.
This should also improve reproducibility by ensuring CircleCI builds the right thing.

@btlogy btlogy self-assigned this Nov 1, 2024
@btlogy btlogy marked this pull request as draft November 1, 2024 08:32
Benoit Donneaux added 2 commits November 1, 2024 09:57
@btlogy btlogy force-pushed the 462.ci-http-checkout branch 3 times, most recently from c17c1c6 to 172f5dd Compare November 1, 2024 10:26
Signed-off-by: Benoit Donneaux <[email protected]>
Signed-off-by: Benoit Donneaux <[email protected]>
@btlogy btlogy changed the title Have CI using SHA1 digests instead of branches to checkout CI checkout SHA1 digests and work for both local and remote forks Nov 1, 2024
@btlogy
Copy link
Collaborator Author

btlogy commented Nov 1, 2024

I've tested this "logic" extensively (sorry for the possible noise) for both local and remote forks (see #474).
I hope this will still work on the main branch after the merge.

@btlogy btlogy marked this pull request as ready for review November 1, 2024 10:59
Copy link
Member

@crwood crwood left a comment

Choose a reason for hiding this comment

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

Thanks @btlogy!

@crwood crwood merged commit 00db814 into PrivateStorageio:main Nov 1, 2024
8 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants