Skip to content

feat(ci): Pin action versions to commit SHAs#5876

Merged
awanlin merged 7 commits into
backstage:mainfrom
Ayushmore1214:feat/harden-workflows-pinning
Nov 21, 2025
Merged

feat(ci): Pin action versions to commit SHAs#5876
awanlin merged 7 commits into
backstage:mainfrom
Ayushmore1214:feat/harden-workflows-pinning

Conversation

@Ayushmore1214
Copy link
Copy Markdown
Contributor

Hey, I just made a Pull Request!

Making our CI/CD a little more secure this pins all actions to specific commit sha, preventing unexpected breaks or supply-chain risk

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)
  • All your commits have a Signed-off-by line in the message. (more info)

Signed-off-by: Ayush More <ayushmore42595@gmail.com>
@Ayushmore1214 Ayushmore1214 requested a review from a team as a code owner October 19, 2025 06:28
@Ayushmore1214
Copy link
Copy Markdown
Contributor Author

@benjdlambert plz review

Copy link
Copy Markdown
Contributor

@awanlin awanlin left a comment

Choose a reason for hiding this comment

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

Thanks for these changes @Ayushmore1214, spotted some typos and a pair of missed items.

I think we also should make changes to this file so that we automatically stay up to date with changes:

{
"extends": [
"config:best-practices",
":gitSignOff",
":rebaseStalePrs",
"group:linters",
"group:test",
":preserveSemverRanges"
],
"ignorePresets": [":pinDevDependencies", ":pinDigest", "docker:pinDigests"],

We should be able to just add "helpers:pinGitHubActionDigests" to the extends array to enable that.

Comment thread .github/workflows/auto-version-bump-scheduler.yml Outdated
Comment thread .github/workflows/auto-version-bump-scheduler.yml Outdated
Comment thread .github/workflows/deprecate-archived-plugins.yml Outdated
Comment thread .github/workflows/renovate.yml
Comment thread .github/workflows/upgrade-dashboard.yml
Ayushmore1214 and others added 4 commits October 25, 2025 15:20
Co-authored-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
Signed-off-by: Ayush More <ayushmore42595@gmail.com>
Co-authored-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
Signed-off-by: Ayush More <ayushmore42595@gmail.com>
Co-authored-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
Signed-off-by: Ayush More <ayushmore42595@gmail.com>
Signed-off-by: Ayush More <ayushmore42595@gmail.com>
@Ayushmore1214
Copy link
Copy Markdown
Contributor Author

@awanlin thank you for your review , I have made the changes respectively

@Ayushmore1214
Copy link
Copy Markdown
Contributor Author

Thanks for these changes @Ayushmore1214, spotted some typos and a pair of missed items.

I think we also should make changes to this file so that we automatically stay up to date with changes:

{
"extends": [
"config:best-practices",
":gitSignOff",
":rebaseStalePrs",
"group:linters",
"group:test",
":preserveSemverRanges"
],
"ignorePresets": [":pinDevDependencies", ":pinDigest", "docker:pinDigests"],

We should be able to just add "helpers:pinGitHubActionDigests" to the extends array to enable that.

Thank you for this , just wondering do you think this should also be added to the Renovate config in the main backstage/backstage repository for same security benefitts?

Copy link
Copy Markdown
Contributor

@awanlin awanlin left a comment

Choose a reason for hiding this comment

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

Thanks for the follow up @Ayushmore1214, left one new comment to address.

Comment thread .github/renovate.json Outdated
Signed-off-by: Ayush More <ayushmore42595@gmail.com>
@Ayushmore1214
Copy link
Copy Markdown
Contributor Author

Done

Copy link
Copy Markdown
Contributor

@awanlin awanlin left a comment

Choose a reason for hiding this comment

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

Hi @Ayushmore1214, left one comment 🙏

Comment thread .github/renovate.json Outdated
Signed-off-by: Ayush More <ayushmore42595@gmail.com>
Copy link
Copy Markdown
Contributor

@awanlin awanlin left a comment

Choose a reason for hiding this comment

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

Awesome, let's get this merged @Ayushmore1214 🚀

@awanlin awanlin merged commit 0ec0afa into backstage:main Nov 21, 2025
10 checks passed
awanlin added a commit that referenced this pull request Nov 21, 2025
awanlin added a commit that referenced this pull request Nov 21, 2025
This reverts commit 0ec0afa.

Signed-off-by: Andre Wanlin <awanlin@spotify.com>
awanlin added a commit that referenced this pull request Nov 21, 2025
This reverts commit 0ec0afa.

Signed-off-by: Andre Wanlin <awanlin@spotify.com>
@awanlin
Copy link
Copy Markdown
Contributor

awanlin commented Nov 21, 2025

We ended up having to revert this change as the SHA's were not correct: #6117. Given this I'd prefer to let Renovate eventually generate the PR for these changes.

mjramer pushed a commit to mjramer/community-plugins that referenced this pull request Nov 21, 2025
* feat(ci): Pin action versions to commit SHAs

Signed-off-by: Ayush More <ayushmore42595@gmail.com>

* Update .github/workflows/auto-version-bump-scheduler.yml

Co-authored-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
Signed-off-by: Ayush More <ayushmore42595@gmail.com>

* Update .github/workflows/auto-version-bump-scheduler.yml

Co-authored-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
Signed-off-by: Ayush More <ayushmore42595@gmail.com>

* Update .github/workflows/deprecate-archived-plugins.yml

Co-authored-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
Signed-off-by: Ayush More <ayushmore42595@gmail.com>

* fixed the typos

Signed-off-by: Ayush More <ayushmore42595@gmail.com>

* Remove helper for pinning GitHub Action digests

Signed-off-by: Ayush More <ayushmore42595@gmail.com>

* Fix formatting in renovate.json

Signed-off-by: Ayush More <ayushmore42595@gmail.com>

---------

Signed-off-by: Ayush More <ayushmore42595@gmail.com>
Co-authored-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
Signed-off-by: Max Ramer <maxjramer@gmail.com>
mjramer pushed a commit to mjramer/community-plugins that referenced this pull request Nov 21, 2025
backstage#6117)

This reverts commit 0ec0afa.

Signed-off-by: Andre Wanlin <awanlin@spotify.com>
Signed-off-by: Max Ramer <maxjramer@gmail.com>
mjramer pushed a commit to mjramer/community-plugins that referenced this pull request Nov 21, 2025
* feat(ci): Pin action versions to commit SHAs

Signed-off-by: Ayush More <ayushmore42595@gmail.com>

* Update .github/workflows/auto-version-bump-scheduler.yml

Co-authored-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
Signed-off-by: Ayush More <ayushmore42595@gmail.com>

* Update .github/workflows/auto-version-bump-scheduler.yml

Co-authored-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
Signed-off-by: Ayush More <ayushmore42595@gmail.com>

* Update .github/workflows/deprecate-archived-plugins.yml

Co-authored-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
Signed-off-by: Ayush More <ayushmore42595@gmail.com>

* fixed the typos

Signed-off-by: Ayush More <ayushmore42595@gmail.com>

* Remove helper for pinning GitHub Action digests

Signed-off-by: Ayush More <ayushmore42595@gmail.com>

* Fix formatting in renovate.json

Signed-off-by: Ayush More <ayushmore42595@gmail.com>

---------

Signed-off-by: Ayush More <ayushmore42595@gmail.com>
Co-authored-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
Signed-off-by: Max Ramer <maxjramer@gmail.com>
mjramer pushed a commit to mjramer/community-plugins that referenced this pull request Nov 21, 2025
backstage#6117)

This reverts commit 0ec0afa.

Signed-off-by: Andre Wanlin <awanlin@spotify.com>
Signed-off-by: Max Ramer <maxjramer@gmail.com>
mjramer pushed a commit to mjramer/community-plugins that referenced this pull request Nov 21, 2025
* feat(ci): Pin action versions to commit SHAs

Signed-off-by: Ayush More <ayushmore42595@gmail.com>

* Update .github/workflows/auto-version-bump-scheduler.yml

Co-authored-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
Signed-off-by: Ayush More <ayushmore42595@gmail.com>

* Update .github/workflows/auto-version-bump-scheduler.yml

Co-authored-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
Signed-off-by: Ayush More <ayushmore42595@gmail.com>

* Update .github/workflows/deprecate-archived-plugins.yml

Co-authored-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
Signed-off-by: Ayush More <ayushmore42595@gmail.com>

* fixed the typos

Signed-off-by: Ayush More <ayushmore42595@gmail.com>

* Remove helper for pinning GitHub Action digests

Signed-off-by: Ayush More <ayushmore42595@gmail.com>

* Fix formatting in renovate.json

Signed-off-by: Ayush More <ayushmore42595@gmail.com>

---------

Signed-off-by: Ayush More <ayushmore42595@gmail.com>
Co-authored-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
Signed-off-by: Max Ramer <maxjramer@gmail.com>
mjramer pushed a commit to mjramer/community-plugins that referenced this pull request Nov 21, 2025
backstage#6117)

This reverts commit 0ec0afa.

Signed-off-by: Andre Wanlin <awanlin@spotify.com>
Signed-off-by: Max Ramer <maxjramer@gmail.com>
@Ayushmore1214
Copy link
Copy Markdown
Contributor Author

Ohhh , Thanks for getting it merged !

gavinelder pushed a commit to gavinelder/community-plugins that referenced this pull request Jan 31, 2026
* feat(ci): Pin action versions to commit SHAs

Signed-off-by: Ayush More <ayushmore42595@gmail.com>

* Update .github/workflows/auto-version-bump-scheduler.yml

Co-authored-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
Signed-off-by: Ayush More <ayushmore42595@gmail.com>

* Update .github/workflows/auto-version-bump-scheduler.yml

Co-authored-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
Signed-off-by: Ayush More <ayushmore42595@gmail.com>

* Update .github/workflows/deprecate-archived-plugins.yml

Co-authored-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
Signed-off-by: Ayush More <ayushmore42595@gmail.com>

* fixed the typos

Signed-off-by: Ayush More <ayushmore42595@gmail.com>

* Remove helper for pinning GitHub Action digests

Signed-off-by: Ayush More <ayushmore42595@gmail.com>

* Fix formatting in renovate.json

Signed-off-by: Ayush More <ayushmore42595@gmail.com>

---------

Signed-off-by: Ayush More <ayushmore42595@gmail.com>
Co-authored-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
gavinelder pushed a commit to gavinelder/community-plugins that referenced this pull request Jan 31, 2026
backstage#6117)

This reverts commit 0ec0afa.

Signed-off-by: Andre Wanlin <awanlin@spotify.com>
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