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 versions of Github actions in CI and add dependabot for automated updates #43

Merged
merged 2 commits into from
Apr 4, 2024

Conversation

bjosv
Copy link
Collaborator

@bjosv bjosv commented Mar 21, 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.

See #42
or
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

bjosv added 2 commits March 21, 2024 09:27
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 5b25997 into Ericsson:main Apr 4, 2024
5 checks passed
@bjosv bjosv deleted the dependabot branch April 4, 2024 09:20
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