Skip to content

Commit bc17b70

Browse files
committed
ci: fix security workflows
1 parent c36a930 commit bc17b70

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,33 @@ jobs:
5555
with:
5656
token: ${{ secrets.CODECOV_TOKEN }}
5757

58+
- name: Initialize CodeQL
59+
uses: github/codeql-action/init@v3
60+
with:
61+
languages: ${{ matrix.language }}
62+
63+
- name: Analyze CodeQL
64+
uses: github/codeql-action/analyze@v3
65+
66+
- name: Analyze OSSF Scorecard
67+
uses: ossf/[email protected]
68+
with:
69+
results_file: ossf_scorecard.sarif
70+
results_format: sarif
71+
repo_token: ${{ secrets.TOKEN }}
72+
publish_results: true
73+
74+
- name: Upload to GitHub Actions Artifact
75+
uses: actions/upload-artifact@v4
76+
with:
77+
name: OSSF Scorecard
78+
path: ossf_scorecard.sarif
79+
80+
- name: Upload to GitHub Code Scanning
81+
uses: github/codeql-action/upload-sarif@v3
82+
with:
83+
sarif_file: ossf_scorecard.sarif
84+
5885
- name: Release and Publish to NPM
5986
env:
6087
GIT_AUTHOR_NAME: ${{ vars.GIT_AUTHOR_NAME }}

.github/workflows/security.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
uses: github/codeql-action/analyze@v3
4343

4444
- name: Analyze OSSF Scorecard
45-
uses: ossf/scorecard-action@v2
45+
uses: ossf/scorecard-action@v2.4.1
4646
with:
4747
results_file: ossf_scorecard.sarif
4848
results_format: sarif

0 commit comments

Comments
 (0)