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: Update build and release dependencies to be referenced by SHA #9177

Merged
merged 17 commits into from
Jul 11, 2023

Conversation

diogoteles08
Copy link
Contributor

Implementation of second part of the issue #9073

step-security-bot and others added 7 commits June 22, 2023 13:27
…ed using StepSecurity

Signed-off-by: StepSecurity Bot <[email protected]>
Signed-off-by: Diogo Teles Sant'Anna <[email protected]>
The flag is needed to create hash-pinned requirements for pip and
setup-tools. Find more information about this at these issues from [pip-tools](jazzband/pip-tools#806) and from [pip](pypa/pip#6459).

Signed-off-by: Diogo Teles Sant'Anna <[email protected]>
@alex
Copy link
Member

alex commented Jul 4, 2023

CI seems unhappy. Once it's green I'll review.

Thanks for working on this!

…teps

Using the actions/checkout to download the requirements.txt was erasing
some necessary files that came from previous steps. Thus, this commit
changes moves the checkout action to the beginnig of the jobs.

Signed-off-by: Diogo Teles Sant'Anna <[email protected]>
@diogoteles08
Copy link
Contributor Author

CI passing now! It was a problem with a misplaced actions/checkout call that was erasing files created by previous steps.

That said, I choose to use this actions/checkout to get the requirements.txt from the repository, taking into account the exact same commit/version that is being run at the CI. If you have any better ideas on how to do it, let me know and I'd be happy to review and refactor my changes.

@alex
Copy link
Member

alex commented Jul 5, 2023 via email

Copy link
Member

@alex alex left a comment

Choose a reason for hiding this comment

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

Can you please move the requirements files from github/workflows/requirements/ to .github/requirements/

Very close on this. Thanks for your work!

.github/workflows/pypi-publish.yml Outdated Show resolved Hide resolved
.github/workflows/requirements/build-requirements.in Outdated Show resolved Hide resolved
@diogoteles08 diogoteles08 force-pushed the ci/hash-pin-build-dependencies branch from beaba75 to 916a9bc Compare July 10, 2023 17:20
Moved from .github/workflows/requirements/ to .github/requirements/

Signed-off-by: Diogo Teles Sant'Anna <[email protected]>
When calling actions/checkout , we were passing the `ref` parameter as `github.ref`, but it will likely be always main, or the vary same value as the default for this parameter.
@reaperhulk
Copy link
Member

Thanks for working on this @diogoteles08

@reaperhulk reaperhulk merged commit 7d62332 into pyca:main Jul 11, 2023
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.

4 participants