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

MNT: Use hash for Action workflow versions and update if needed #234

Merged
merged 3 commits into from
Nov 26, 2024

Conversation

pllim
Copy link
Contributor

@pllim pllim commented Sep 27, 2024

As recommended by https://scientific-python.org/specs/spec-0008/#pin-github-actions-release-workflows-to-their-full-release-commit-shas , this PR changes your Actions workflow version pins to hashes, and updates to latest release hashes (at the time of writing) if needed.

This is an automated update made by the batchpr tool 🤖 - feel free to close if it doesn't look good! You can report issues to @pllim.

👻

@Cadair
Copy link
Member

Cadair commented Sep 28, 2024

@pllim do we need to do anything to configure dependabot to handle this format?

@pllim
Copy link
Contributor Author

pllim commented Sep 30, 2024

No, I don't think so. @bsipocz can confirm if you need second opinion. Thanks!

with:
fetch-depth: 0
lfs: true
submodules: ${{ inputs.submodules }}
- name: Install dependencies
if: ${{ inputs.libraries != '' }}
uses: ConorMacBride/install-package@main
uses: ConorMacBride/install-package@3e7ad059e07782ee54fa35f827df52aae0626f30 # v1.1.0
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't seem good to use a personal action in here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Well, that is still not nice, wasn't the whole point of using OpenAstronomy to eliminate single point of failures, yet it uses an action from personal repo under the hood.

@bsipocz
Copy link
Member

bsipocz commented Sep 30, 2024

Yeap, no changes are needed for dependabot, it handles the hashes well. (Though my preference is to have a grouped, monthly run)

Copy link
Member

@Cadair Cadair left a comment

Choose a reason for hiding this comment

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

I am fine with this, but I will let someone else review it as well.

@pllim
Copy link
Contributor Author

pllim commented Sep 30, 2024

grouped, monthly run

If Stuart wants that, I can also attach that change in this PR real quick. Just lemme know.

@Cadair
Copy link
Member

Cadair commented Sep 30, 2024

Go for it!

@pllim
Copy link
Contributor Author

pllim commented Sep 30, 2024

Done. Thanks, all!

@Cadair
Copy link
Member

Cadair commented Nov 25, 2024

@pllim can you rebase this?

@pllim
Copy link
Contributor Author

pllim commented Nov 25, 2024

@Cadair I used the GitHub web interface to resolve conflicts which introduced merge commit. Please squash and merge. Thanks!

@pllim
Copy link
Contributor Author

pllim commented Nov 25, 2024

There are some runner errors/warnings that are not related to this PR?

https://github.com/OpenAstronomy/github-actions-workflows/actions/runs/12015369295

Copy link
Member

@bsipocz bsipocz left a comment

Choose a reason for hiding this comment

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

Let's have this in.

.github/workflows/publish_pure_python.yml Show resolved Hide resolved
@bsipocz bsipocz merged commit adbf515 into OpenAstronomy:main Nov 26, 2024
67 of 69 checks passed
@bsipocz
Copy link
Member

bsipocz commented Nov 26, 2024

Thanks @pllim!

@pllim pllim deleted the action-ver-hash branch November 26, 2024 15:25
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