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

CI: Hash pin all GH actions + configure dependabot for those. #1417

Merged
merged 5 commits into from
Jan 8, 2024

Conversation

diogoteles08
Copy link
Contributor

Closes #1416

As mentioned on the issue, this PR enhances project security by hash-pinning the dependencies that are called under dangerous permissions and configuring dependabot to automatically update them. Additionally, I've also used this PR to contribute with the nit-pick I've mentioned on commentaries at #1294; those changes will ensure all workflows are running with minimal permissions.

I configured dependabot in a way that all of version updates will be collapsed in a single PR sent monthly -- this avoids noisy PRs, which is a common concern haha. Regardless of the frequency chosen, for the case of security updates a PR with the fixed version would be sent right away.

Signed-off-by: Diogo Teles Sant'Anna <diogoteles@google.com>
Signed-off-by: Diogo Teles Sant'Anna <diogoteles@google.com>
It'll generate a single monthly PR with updates on all relevant github actions

Signed-off-by: Diogo Teles Sant'Anna <diogoteles@google.com>
Implemented as discussed at prometheus#1294 and already implemented at prometheus/prometheus

Signed-off-by: Diogo Teles Sant'Anna <diogoteles@google.com>
Signed-off-by: Diogo Teles Sant'Anna <diogoteles@google.com>
Copy link
Member

@ArthurSens ArthurSens left a comment

Choose a reason for hiding this comment

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

Sounds like a good improvement!

Do I understand it correctly that dependabot also updates the human-readable comment, alongside the commit SHA?

@diogoteles08
Copy link
Contributor Author

Do I understand it correctly that dependabot also updates the human-readable comment, alongside the commit SHA?

Yes it does! =D

@bwplotka
Copy link
Member

bwplotka commented Jan 8, 2024

Thanks, do you mind providing meaningful PR title?

I did this for you (:

Copy link
Member

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

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

Thanks!

@bwplotka bwplotka changed the title Patch 1 CI: Hash pin all GH actions + configure dependabot for those. Jan 8, 2024
@bwplotka bwplotka merged commit 6636d6a into prometheus:main Jan 8, 2024
8 checks passed
@diogoteles08
Copy link
Contributor Author

Thanks, do you mind providing meaningful PR title?

I did this for you (:

Gosh, sorry about that hehe, but thanks!

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.

3 participants