Upgrade GitHub Actions to latest versions#18689
Upgrade GitHub Actions to latest versions#18689salmanmkc wants to merge 2 commits intogithub:mainfrom
Conversation
Signed-off-by: Salman Muin Kayser Chishti <13schishti@gmail.com>
There was a problem hiding this comment.
Pull request overview
This PR upgrades several GitHub Actions to their latest versions to improve security, features, and compatibility. The changes include major version upgrades (v3→v4) for CodeQL and upload-pages-artifact actions, and updates to other security and SBOM generation tools.
Changes:
- Upgraded
github/codeql-action/*from v3 to v4 across multiple workflow files - Updated
actions/upload-pages-artifactfrom v3 to v4 with SHA pinning - Upgraded
aquasecurity/trivy-actionto version 0.34.1 - Updated
anchore/sbom-actionfrom v0 to v0.23.0 - Upgraded
github/stale-reposfrom v3.0.2 to v8.0.4
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/vet.yml |
Upgraded codeql-action/upload-sarif from v3 to v4 |
.github/workflows/stale-repo-identifier.md |
Updated stale-repos action from v3.0.2 to v8.0.4 |
.github/workflows/security-scan.yml |
Upgraded codeql-action/upload-sarif (3 instances) and trivy-action to latest versions |
.github/workflows/release.md |
Updated anchore/sbom-action from v0 to v0.23.0 for both SPDX and CycloneDX formats |
.github/workflows/docs.yml |
Upgraded upload-pages-artifact from v3 to v4 with SHA pinning |
.github/workflows/codeql.yml |
Updated codeql-action/init and codeql-action/analyze from v3 to v4 |
Comments suppressed due to low confidence (7)
.github/workflows/security-scan.yml:37
- There are two spaces between the SHA and the comment marker '#', while the original format had one space. This is inconsistent with the formatting on line 74 (actions/checkout) which maintains single space formatting. For consistency, use a single space between the SHA and the '#' comment marker.
This issue also appears in the following locations of the same file:
- line 63
- line 77
- line 87
uses: github/codeql-action/upload-sarif@bb471cdcf4dda2c934c5b656f554d43c1434ed13 # v4
.github/workflows/security-scan.yml:63
- There are two spaces between the SHA and the comment marker '#', while the original format had one space. This is inconsistent with the formatting on line 74 (actions/checkout) which maintains single space formatting. For consistency, use a single space between the SHA and the '#' comment marker.
uses: github/codeql-action/upload-sarif@bb471cdcf4dda2c934c5b656f554d43c1434ed13 # v4
.github/workflows/security-scan.yml:77
- There are two spaces between the SHA and the comment marker '#', while the original format had one space. This is inconsistent with the formatting on line 74 (actions/checkout) which maintains single space formatting. For consistency, use a single space between the SHA and the '#' comment marker.
uses: aquasecurity/trivy-action@e368e328979b113139d6f9068e03accaed98a518 # 0.34.1
.github/workflows/security-scan.yml:87
- There are two spaces between the SHA and the comment marker '#', while the original format had one space. This is inconsistent with the formatting on line 74 (actions/checkout) which maintains single space formatting. For consistency, use a single space between the SHA and the '#' comment marker.
uses: github/codeql-action/upload-sarif@bb471cdcf4dda2c934c5b656f554d43c1434ed13 # v4
.github/workflows/docs.yml:81
- There are two spaces between the SHA and the comment marker '#', while other SHA-pinned actions in the file use single space formatting. For consistency, use a single space between the SHA and the '#' comment marker.
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
.github/workflows/codeql.yml:28
- There are two spaces between the SHA and the comment marker '#', while other SHA-pinned actions in the file use single space formatting. For consistency, use a single space between the SHA and the '#' comment marker.
This issue also appears on line 45 of the same file.
uses: github/codeql-action/init@bb471cdcf4dda2c934c5b656f554d43c1434ed13 # v4
.github/workflows/codeql.yml:45
- There are two spaces between the SHA and the comment marker '#', while other SHA-pinned actions in the file use single space formatting. For consistency, use a single space between the SHA and the '#' comment marker.
uses: github/codeql-action/analyze@bb471cdcf4dda2c934c5b656f554d43c1434ed13 # v4
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
bbf4185 to
6e011a2
Compare
|
Hey @salmanmkc 👋 — thanks for looking out for the project's CI hygiene and for the effort you put into documenting the upgrades in that detailed table! Unfortunately this PR can't be accepted as-is because it doesn't follow the contribution process described in CONTRIBUTING.md. Here's what the guidelines say:
The right path forward is to close this PR and open an issue with a detailed agentic plan. Here's a ready-to-use prompt you can assign to your coding agent to draft that issue:
|
Summary
Upgrade GitHub Actions to their latest versions for improved features, bug fixes, and security updates.
Changes
actions/upload-pages-artifact56afc607b1f4a7anchore/sbom-actionv0v0.23.0aquasecurity/trivy-actionb6643a2e368e32github/codeql-action/analyze4248455bb471cdgithub/codeql-action/init4248455bb471cdgithub/codeql-action/upload-sarif4248455,v3bb471cdgithub/stale-reposv3.0.2v8.0.4Why 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.