Skip to content

Conversation

@tvpeter
Copy link
Collaborator

@tvpeter tvpeter commented Nov 25, 2025

Description

Fixes #15 and #14

Updates Audit Workflow

Notes to the reviewers

  • remove master branch filter
  • fix invalid pinned SHA
  • removed Swatinem/rust-cache action

Checklists

All Submissions:

  • I've signed all my commits
  • I followed the contribution guidelines
  • I ran cargo fmt and cargo clippy before committing

@ValuedMammal
Copy link
Collaborator

I think issue #14 is referring to using actions-rust-lang/setup-rust-toolchain, with cache: true, as we are also using in cont_integration.yml, but don't know if I've missed something.

@oleonardolima
Copy link
Collaborator

I think issue #14 is referring to using actions-rust-lang/setup-rust-toolchain, with cache: true, as we are also using in cont_integration.yml, but don't know if I've missed something.

Yes, that's what I meant, instead of using the actions/cache and dtolnay/rust, we can just use the cache feature in the actions-rust-lang/setup-rust-toolchain.

@tvpeter tvpeter force-pushed the fix/audit-workflow branch from c42180a to 4b88a5f Compare December 8, 2025 16:16
@tvpeter tvpeter force-pushed the fix/audit-workflow branch from 4b88a5f to 5957bea Compare December 8, 2025 16:19
@tvpeter tvpeter force-pushed the fix/audit-workflow branch from 5957bea to 2604ce4 Compare December 8, 2025 16:25

- name: Cache cargo registry/index/target
uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think actions/checkout can be bumped to v6 now.

According to zizmor

Official GitHub actions namespaces can be pinned by branch or tag. In other words, actions/checkout@v4 is acceptable.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@tvpeter For simplicity do you want to stick with using actions/checkout@v6 instead of the full commit hash for "official github actions", i.e. the ones starting with actions/*.

Copy link
Collaborator Author

@tvpeter tvpeter Dec 8, 2025

Choose a reason for hiding this comment

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

I prefer using actions/checkout@v6 because it allows for automatic minor updates instead of a specific full commit hash. However, Luiz suggested we use specific hashes for highest security, which is what Zizmor has been monitoring.

- remove master branch filter
- fix invalid pinned SHA
- replace Swatinem/rust-cache, actions/cache and
dtolnay/rust-toolchain actions
- updated actions/checkout to v6.0.1
@tvpeter tvpeter force-pushed the fix/audit-workflow branch from 2604ce4 to fc8ba0e Compare December 8, 2025 17:21
Copy link
Collaborator

@ValuedMammal ValuedMammal left a comment

Choose a reason for hiding this comment

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

ACK fc8ba0e

In terms of workflows we should probably also look into resolving credential persistence and overly broad permissions.

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.

Update Security Audit workflow

3 participants