Repository navigation
CI Add dependabot and pin github action versions - #314
Open
FrancoisPgm wants to merge 1 commit into
Open
FrancoisPgm wants to merge 1 commit into
FrancoisPgm wants to merge 1 commit into
Conversation
FrancoisPgm
commented
Dec 2, 2026
| - uses: actions/checkout@v4.4.0 | ||
| with: | ||
| persist-credentials: false | ||
| - run: gh extension install github/gh-actions-lock --pin v0.4.1 |
Author
There was a problem hiding this comment.
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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