Skip to content

Commit d310cfd

Browse files
committed
Fix: Add permissions for SARIF upload
1 parent c347133 commit d310cfd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/trivy-scan.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ jobs:
1111
scan: # 'scan' 이라는 이름의 잡(job) 정의
1212
name: Scan Alpine Image # 잡의 표시 이름
1313
runs-on: ubuntu-latest # 실행될 환경 (가상머신 종류)
14+
permissions:
15+
contents: read # actions/checkout 에 필요
16+
security-events: write # SARIF 업로드 (github/codeql-action/upload-sarif) 에 필요
1417

1518
steps: # 잡 내에서 실행될 단계들
1619
- name: Checkout code # 코드 체크아웃 (표준적인 단계)

0 commit comments

Comments
 (0)