Skip to content

Commit a9da78a

Browse files
committed
ci(github-actions): least priviledge
1 parent 9bf3208 commit a9da78a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/msdo.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,17 @@ jobs:
2121
name: MSDO
2222
runs-on: windows-latest
2323
permissions:
24+
# Required to upload the SARIF file to the security tab
2425
security-events: write
2526
steps:
2627
- name: Checkout code
2728
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2829
with:
2930
persist-credentials: false
30-
3131
- name: Run Microsoft Security DevOps scanner
32+
id: scan
3233
uses: microsoft/security-devops-action@08976cb623803b1b36d7112d4ff9f59eae704de0 # v1.12.0
33-
id: msdo
34-
3534
- name: Upload MSDO scan results to GitHub Security tab
36-
uses: github/codeql-action/upload-sarif@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
35+
uses: github/codeql-action/upload-sarif@192325c86100d080feab897ff886c34abd4c83a3 # v3.29.5
3736
with:
38-
sarif_file: ${{ steps.msdo.outputs.sarifFile }}
37+
sarif_file: ${{ steps.scan.outputs.sarifFile }}

0 commit comments

Comments
 (0)