Skip to content

chore: pin GitHub Actions to commit SHAs#38

Closed
KooshaPari wants to merge 1 commit into
mainfrom
chore/pin-actions-0501
Closed

chore: pin GitHub Actions to commit SHAs#38
KooshaPari wants to merge 1 commit into
mainfrom
chore/pin-actions-0501

Conversation

@KooshaPari
Copy link
Copy Markdown
Owner

@KooshaPari KooshaPari commented May 1, 2026

User description

Pins GitHub Actions to specific commit SHAs for security and reproducibility.

Note

Low Risk
Low risk because it only changes CI workflow references, pinning actions/checkout and actions/upload-artifact to specific commits; the main risk is an incorrect SHA causing workflow failures.

Overview
Pins GitHub Actions used in CI workflows to specific commit SHAs for reproducibility and supply-chain hardening.

Updates multiple Rust-related workflows (cargo-audit, cargo-machete, cargo-semver-checks, codeql-rust, cargo-deny) to use pinned actions/checkout commits, and pins actions/upload-artifact in scorecard.yml.

Reviewed by Cursor Bugbot for commit aa13810. Bugbot is set up for automated code reviews on this repo. Configure here.


CodeAnt-AI Description

Pin CI actions to fixed commit versions

What Changed

  • Several GitHub Actions in Rust-related checks now use fixed commit versions instead of moving tags
  • Checkout is pinned in audit, semver checks, CodeQL, cargo-machete, and cargo-deny workflows
  • Scorecard artifact uploads are also pinned to a fixed version

Impact

✅ More predictable CI runs
✅ Fewer workflow breaks from upstream action changes
✅ Lower supply-chain risk in CI

🔄 Retrigger CodeAnt AI Review

Details

💡 Usage Guide

Checking Your Pull Request

Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.

Talking to CodeAnt AI

Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

Preserve Org Learnings with CodeAnt

You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

Check Your Repository Health

To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.

Pins actions/checkout, setup-node, setup-python, upload-artifact,
cache, github-script, download-artifact to specific version SHAs
Copilot AI review requested due to automatic review settings May 1, 2026 07:01
@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 1, 2026

CodeAnt AI is reviewing your PR.


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@gemini-code-assist
Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 1, 2026

Warning

Rate limit exceeded

@KooshaPari has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 51 minutes and 51 seconds before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: fca945ee-83d7-4fe6-a4a7-37418f7a3b2f

📥 Commits

Reviewing files that changed from the base of the PR and between 3ccd81b and aa13810.

📒 Files selected for processing (6)
  • .github/workflows/cargo-audit.yml
  • .github/workflows/cargo-deny.yml
  • .github/workflows/cargo-machete.yml
  • .github/workflows/cargo-semver-checks.yml
  • .github/workflows/codeql-rust.yml
  • .github/workflows/scorecard.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/pin-actions-0501
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch chore/pin-actions-0501

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
Review rate limit: 0/1 reviews remaining, refill in 51 minutes and 51 seconds.

Comment @coderabbitai help to get the list of available commands and usage tips.

@codeant-ai codeant-ai Bot added the size:XS This PR changes 0-9 lines, ignoring generated files label May 1, 2026
@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 1, 2026

CodeAnt AI finished reviewing your PR.

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is ON, but it could not run because on-demand usage is turned off. To enable Bugbot Autofix, turn on on-demand usage and set a spend limit in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit aa13810. Configure here.

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

SHA-pinned actions missing version comments unlike existing convention

Low Severity

All newly SHA-pinned actions omit the # vX.Y.Z version comment that the repository already uses consistently. Five existing workflow files (codeql.yml, doc-links.yml, fr-coverage.yml, quality-gate.yml, release.yml) and scorecard.yml line 22 all follow the @SHA # vX.Y.Z pattern. The new pins in cargo-audit.yml, cargo-deny.yml, cargo-machete.yml, cargo-semver-checks.yml, codeql-rust.yml, and scorecard.yml (for upload-artifact) lack these comments, making it impossible to know which version each SHA corresponds to without looking it up externally.

Additional Locations (2)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit aa13810. Configure here.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@KooshaPari KooshaPari closed this May 1, 2026
@KooshaPari KooshaPari deleted the chore/pin-actions-0501 branch May 1, 2026 15:09
@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 5, 2026

CodeAnt AI is running the review.


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@codeant-ai codeant-ai Bot added size:XS This PR changes 0-9 lines, ignoring generated files and removed size:XS This PR changes 0-9 lines, ignoring generated files labels May 5, 2026
@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 5, 2026

Sequence Diagram

This PR updates CI workflows to pin core GitHub Actions (checkout and upload artifact) to specific commits, ensuring reproducible and hardened security analysis and Rust checks.

sequenceDiagram
    participant Developer
    participant GitHubActions as GitHub Actions
    participant Repo
    participant Scorecard
    participant ArtifactStore as Artifact storage
    participant CodeQL

    Developer->>GitHubActions: Push or open pull request
    GitHubActions->>Repo: Checkout code with pinned checkout action
    GitHubActions->>Scorecard: Run scorecard analysis
    Scorecard-->>GitHubActions: SARIF results
    GitHubActions->>ArtifactStore: Upload SARIF with pinned upload artifact action
    GitHubActions->>CodeQL: Upload SARIF for security analysis
Loading

Generated by CodeAnt AI

@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 5, 2026

CodeAnt AI finished running the review.


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 5, 2026

CodeAnt AI is running the review.


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@codeant-ai codeant-ai Bot added size:XS This PR changes 0-9 lines, ignoring generated files and removed size:XS This PR changes 0-9 lines, ignoring generated files labels May 5, 2026
@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 5, 2026

Sequence Diagram

This PR pins key GitHub Actions like checkout and upload artifact to specific commit SHAs, ensuring reproducible and hardened CI for Rust and scorecard security checks. The diagram shows how CI uses these pinned actions to run analyses and surface results to developers.

sequenceDiagram
    participant Developer
    participant GitHubActions
    participant PinnedActions
    participant SecurityTools

    Developer->>GitHubActions: Push code or open pull request
    GitHubActions->>PinnedActions: Checkout repository with pinned checkout action
    PinnedActions-->>GitHubActions: Provide source code workspace
    GitHubActions->>SecurityTools: Run Rust and scorecard security checks
    SecurityTools-->>PinnedActions: Prepare analysis results for upload
    PinnedActions-->>Developer: CI status and stored analysis artifacts
Loading

Generated by CodeAnt AI

@codeant-ai
Copy link
Copy Markdown

codeant-ai Bot commented May 5, 2026

CodeAnt AI finished running the review.


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants