Skip to content

Conversation

@blackboxsw
Copy link
Collaborator

@blackboxsw blackboxsw commented Feb 3, 2026

Proposed Commit Message

chore: pin full SHA commits for all workflows

cloud-init project now requires full SHA commits instead of tags for
all workflows to utilize a more secure policy for CI runners.

Any Github actions lacking full SHA pins in workflows/actions will
error due to repo prevention policy.

Additionally update SHA pins to latest known workflow releases.

Additional Context

Example failed jobs lacking workflow SHA pinning https://github.com/canonical/cloud-init/actions/runs/21612935986/job/62285545960

Also: github actions are typically run from the target main branch not the source branch, so I have had to disable the "require full SHA commits for workflows" in security settings so we can clear the CI checks that fail against main. Once this branch merges, we will re-enable that requirement.

#6710

Test Steps

Merge type

  • Squash merge using "Proposed Commit Message"
  • Rebase and merge unique commits. Requires commit messages per-commit each referencing the pull request number (#<PR_NUM>)

cloud-init project now requires full SHA commits instead of tags for
all workflows to utilize a more secure policy for CI runners.

Any Github actions lacking full SHA pins in workflows/actions will
error due to repo prevention policy.
Copy link
Member

@holmanb holmanb left a comment

Choose a reason for hiding this comment

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

LGTM once tests pass.

steps:
- name: Checkout
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Copy link
Member

Choose a reason for hiding this comment

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

retention-days: 3
- name: Setup LXD
uses: canonical/setup-lxd@v0.1.2
uses: canonical/setup-lxd@8c6a87bfb56aa48f3fb9b830baa18562d8bfd4ee # v1
Copy link
Member

Choose a reason for hiding this comment

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

cp cloud-init_all.deb ${{ runner.temp }}
- name: Archive debs as artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
Copy link
Member

Choose a reason for hiding this comment

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

uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install RTD Python Version
uses: actions/setup-python@v5
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
Copy link
Member

Choose a reason for hiding this comment

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

runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
- uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # v6.0.1
Copy link
Member

Choose a reason for hiding this comment

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

steps:
- name: Check if CLA signed
uses: canonical/has-signed-canonical-cla@v2
uses: canonical/has-signed-canonical-cla@19bae73390fdbfdc1ef9a9bb9408d87a1de755f6 # v2
Copy link
Member

Choose a reason for hiding this comment

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


steps:
- uses: actions/stale@v9
- uses: actions/stale@997185467fa4f803885201cee163a9f38240193d # v10.1.1
Copy link
Member

Choose a reason for hiding this comment

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

@blackboxsw blackboxsw merged commit afd0c6c into canonical:main Feb 3, 2026
22 checks passed
holmanb pushed a commit that referenced this pull request Feb 5, 2026
cloud-init project now requires full SHA commits instead of tags for
all workflows to utilize a more secure policy for CI runners.

Any Github actions lacking full SHA pins in workflows/actions will
error due to repo prevention policy.

Additionally update SHA pins to latest known workflow releases.
holmanb pushed a commit that referenced this pull request Feb 5, 2026
cloud-init project now requires full SHA commits instead of tags for
all workflows to utilize a more secure policy for CI runners.

Any Github actions lacking full SHA pins in workflows/actions will
error due to repo prevention policy.

Additionally update SHA pins to latest known workflow releases.
holmanb pushed a commit that referenced this pull request Feb 6, 2026
cloud-init project now requires full SHA commits instead of tags for
all workflows to utilize a more secure policy for CI runners.

Any Github actions lacking full SHA pins in workflows/actions will
error due to repo prevention policy.

Additionally update SHA pins to latest known workflow releases.
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