-
Notifications
You must be signed in to change notification settings - Fork 0
ci: pin all GitHub Actions to immutable commit SHAs #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,17 +42,17 @@ jobs: | |
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | ||
|
|
||
| - name: Initialize CodeQL | ||
|
Comment on lines
43
to
47
|
||
| uses: github/codeql-action/init@v3 | ||
| uses: github/codeql-action/init@820e3160e279568db735cee8ed8f8e77a6da7818 # v3 | ||
| with: | ||
| languages: ${{ matrix.language }} | ||
|
|
||
| - name: Autobuild | ||
| uses: github/codeql-action/autobuild@v3 | ||
| uses: github/codeql-action/autobuild@820e3160e279568db735cee8ed8f8e77a6da7818 # v3 | ||
|
|
||
| - name: Perform CodeQL Analysis | ||
| uses: github/codeql-action/analyze@v3 | ||
| uses: github/codeql-action/analyze@820e3160e279568db735cee8ed8f8e77a6da7818 # v3 | ||
| with: | ||
| category: "/language:${{matrix.language}}" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,13 +38,13 @@ jobs: | |
| contents: read | ||
| security-events: write | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | ||
|
||
|
|
||
| - name: Semgrep scan | ||
| run: semgrep scan --config=auto --sarif -o semgrep.sarif || true | ||
|
|
||
| - name: Upload SARIF | ||
| if: always() | ||
| uses: github/codeql-action/upload-sarif@v3 | ||
| uses: github/codeql-action/upload-sarif@820e3160e279568db735cee8ed8f8e77a6da7818 # v3 | ||
| with: | ||
| sarif_file: semgrep.sarif | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The header "Audit notes" in this workflow says mutable tags (e.g.,
actions/checkout@v4,github/codeql-action@v3) are acceptable, but this PR pins them to immutable SHAs. Please update/remove that note so the documentation matches the new security posture.