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

Enable dependabot dependency updates and pin dependencies by version #11

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

carlewis
Copy link
Contributor

Dependabot is a dependency management and monitoring tool that allows us to avoid supply chain vulnerabilities. Combined with pinned dependencies on our package management systems or GitHub actions, it allows us to keep track of the changes and automatically opens the required pull requests.

Enabling Dependendabot requires repository maintainer permissiones. These are the settings we would recommend: on Settings > Code security and analysis:

  • Enable Dependabot alerts
  • Enable Dependabot security updates
  • Enable Dependabot version updates
  • Enable Dependabot on Actions runners

In the following changes we are pinning versions for the GitHub actions and Python Pip requirements.txt file. Dependabot will run weekly, opening a PR suggesting newer versions of each dependency if available.

Another advantage of using this strategy is we will find out if the workflow fails with newer dependency versions in the PR, instead of finding out when we trigger the publish workflow manually.

Also, this should rise the project OSSF score.

Pin GitHub actions versions by hash
Pin python dependency versions by version
@codeplaysoft codeplaysoft merged commit adecb03 into uxlfoundation:main Jul 23, 2024
2 checks passed
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.

2 participants