Skip to content

chore: harden GitHub workflows and actions - #630

Merged
pedro-avalos merged 16 commits into
mainfrom
pin-workflows-to-hash
Apr 25, 2025
Merged

pedro-avalos merged 16 commits into
mainfrom
pin-workflows-to-hash

Conversation

@pedro-avalos

@pedro-avalos pedro-avalos commented Apr 17, 2025 •

Copy link
Copy Markdown
Collaborator

Description

  • Recommended practice is to pin any GH actions we use to a commit SHA
  • Added zizmor vulnerability scans
    • Resolved any vulnerabilities found by it

Warning

This PR makes changes to the submit action that are NOT backwards-compatible. $, for example, no longer will need to be escaped when passing inline jobs.

Resolved issues

Resolves CERTTF-614

Documentation

Edited README.md regarding the submit action; we don't need to escape $

Web service API changes

Tests

Tested submit action:

Tested poll-multi action: https://github.com/canonical/certification-lab-ci/actions/runs/14523332377 (known issues with child jobs being cancelled/complete)

Tested *-tox.yml workflows:

@pedro-avalos
pedro-avalos force-pushed the pin-workflows-to-hash branch 2 times, most recently from 4f32f29 to 61d8128 Compare April 17, 2025 14:02
@pedro-avalos pedro-avalos changed the title chore: Pin GH actions in workflows chore: harden GitHub workflows and actions Apr 17, 2025
@pedro-avalos
pedro-avalos marked this pull request as ready for review April 17, 2025 15:27
@pedro-avalos
pedro-avalos marked this pull request as draft April 17, 2025 15:27
@pedro-avalos
pedro-avalos force-pushed the pin-workflows-to-hash branch 3 times, most recently from 17a7fe1 to e3ffd4d Compare April 17, 2025 18:19
@pedro-avalos
pedro-avalos marked this pull request as ready for review April 17, 2025 19:39
@pedro-avalos
pedro-avalos requested a review from boukeas April 17, 2025 19:40
@pedro-avalos
pedro-avalos force-pushed the pin-workflows-to-hash branch from 4e6a6bf to d33f23e Compare April 22, 2025 21:26
@pedro-avalos
pedro-avalos force-pushed the pin-workflows-to-hash branch from 9594135 to db447bc Compare April 23, 2025 17:35
boukeas
boukeas previously approved these changes Apr 24, 2025

@boukeas boukeas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Stellar!

Comment thread .github/actions/submit/action.yaml Resolved
@pedro-avalos

Copy link
Copy Markdown
Collaborator Author

I will merge this tomorrow (Friday Apr 25 9am UTC-04:00) to give people time to pin the actions.

@pedro-avalos
pedro-avalos merged commit f16bad7 into main Apr 25, 2025
@pedro-avalos
pedro-avalos deleted the pin-workflows-to-hash branch April 25, 2025 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants