Skip to content

CI Add dependabot and pin github action versions - #314

Open
FrancoisPgm wants to merge 1 commit into
joblib:masterfrom
FrancoisPgm:ci/github-actions-updates
Open

FrancoisPgm wants to merge 1 commit into
joblib:masterfrom
FrancoisPgm:ci/github-actions-updates

Conversation

@FrancoisPgm

Copy link
Copy Markdown

This adds the dependabot yaml file to automatically update the github actions versions. Also it pins these versions in a lock file. I mimicked how it is done in scikit-learn. It requires to add a new "dependencies" label that will be added to the dependabot PRs (in addition to the "CI" label).

An AI agent looked at the currently used version to update the github actions with the full version numbers. I tested a manual trigger of the dependabot check for update in my fork (https://github.com/FrancoisPgm/threadpoolctl/actions/runs/46935301990/job/143655226149) and FWIU it did not open a PR as it did not find anything to update but it ran without failing.

ping @lesteve

- uses: actions/checkout@v4.4.0
with:
persist-credentials: false
- run: gh extension install github/gh-actions-lock --pin v0.4.1

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This is copied from the same action in scikit-learn, but I noticed the gh-actions-lock version is manually pinned here to v0.4.1. I don't know why it is the case and dependabot won't update it, as it only cares about the "uses" pattern. So this needs to be manually bumped. I don't see the advantage but I blindly followed the scikit-learn example.

This branch has not been deployed

No deployments
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.

1 participant