Upgrade GitHub Actions to latest versions#559
Conversation
Signed-off-by: Salman Muin Kayser Chishti <13schishti@gmail.com>
|
|
There was a problem hiding this comment.
Pull request overview
Updates CI workflows to use newer versions of third-party GitHub Actions (Trivy scanning and golangci-lint) to keep the pipeline current with upstream improvements and fixes.
Changes:
- Bump
aquasecurity/trivy-actionfrom0.32.0to0.33.1in the vulnerability scan workflow. - Bump
golangci/golangci-lint-actionfromv8tov9in the build/test workflow.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| .github/workflows/vulnerability-check.yaml | Upgrades Trivy action version used for PR scans and SARIF reporting. |
| .github/workflows/build-and-test.yaml | Upgrades golangci-lint action major version used in the lint job. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| - name: golangci-lint | ||
| uses: golangci/golangci-lint-action@v8 | ||
| uses: golangci/golangci-lint-action@v9 | ||
| with: |
There was a problem hiding this comment.
PR description references keeping actions pinned to commit SHAs, but this workflow uses the movable major tag @v9 for golangci-lint-action. Consider pinning to a specific commit SHA for stronger supply-chain guarantees, or adjust the PR description so it doesn’t suggest SHA pinning applies to this change.
| - name: Run Trivy to check CRITICAL dependencies | ||
| uses: aquasecurity/trivy-action@0.32.0 | ||
| uses: aquasecurity/trivy-action@0.33.1 | ||
| with: |
There was a problem hiding this comment.
PR description mentions that actions pinned to commit SHAs remain pinned for supply-chain security, but this workflow still references Trivy via a mutable version tag. Either update the PR description to avoid implying SHA pinning here, or pin this action to a specific commit SHA (and update it as part of the upgrade).
Summary
Upgrade GitHub Actions to their latest versions for improved features, bug fixes, and security updates.
Changes
aquasecurity/trivy-action0.32.00.33.1golangci/golangci-lint-actionv8v9Why upgrade?
Keeping GitHub Actions up to date ensures:
Security Note
Actions that were previously pinned to commit SHAs remain pinned to SHAs (updated to the latest release SHA) to maintain the security benefits of immutable references.
Testing
These changes only affect CI/CD workflow configurations and should not impact application functionality. The workflows should be tested by running them on a branch before merging.