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

Pin Github action versions in CI and add dependabot for automated updates #207

Merged
merged 2 commits into from
Apr 4, 2024

Conversation

bjosv
Copy link
Collaborator

@bjosv bjosv commented Apr 4, 2024

Pin the Github Action dependencies to the hash according to secure software development best practices
recommended by the Open Source Security Foundation (OpenSSF).

When developing a CI workflow, it's common to version-pin dependencies (i.e. actions/checkout@v4). However, version tags are mutable, so a malicious attacker could overwrite a version tag to point to a malicious or vulnerable commit instead.
Pinning workflow dependencies by hash ensures the dependency is immutable and its behavior is guaranteed.

This PR also adds a dependabot which will perform weekly checks of the Github actions used in CI.
When a newer version is found a pull request is opened to suggest a lift.

Recommendation details:
https://github.com/ossf/scorecard/blob/main/docs/checks.md#pinned-dependencies
https://github.com/ossf/scorecard/blob/main/docs/checks.md#dependency-update-tool

Dependabot will perform weekly checks of the Github actions used in CI.
When a newer version is found a pull request is opened to suggest a lift.
@bjosv bjosv merged commit 9201104 into Nordix:master Apr 4, 2024
33 checks passed
@bjosv bjosv deleted the dependabot branch April 4, 2024 12:03
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