Merge pull request #1373 from h0x0er/main
Added GITHUB_TOKEN permission for code-scanning/anchore.yml
This commit is contained in:
@@ -20,8 +20,14 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: $cron-weekly
|
- cron: $cron-weekly
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Anchore-Build-Scan:
|
Anchore-Build-Scan:
|
||||||
|
permissions:
|
||||||
|
contents: read # for actions/checkout to fetch code
|
||||||
|
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the code
|
- name: Checkout the code
|
||||||
@@ -36,4 +42,4 @@ jobs:
|
|||||||
- name: Upload Anchore Scan Report
|
- name: Upload Anchore Scan Report
|
||||||
uses: github/codeql-action/upload-sarif@v1
|
uses: github/codeql-action/upload-sarif@v1
|
||||||
with:
|
with:
|
||||||
sarif_file: results.sarif
|
sarif_file: results.sarif
|
||||||
|
|||||||
Reference in New Issue
Block a user