Added permissions
This commit is contained in:
@@ -42,9 +42,14 @@ on:
|
|||||||
# Allows you to run this workflow manually from the Actions tab
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Trigger_EthicalCheck:
|
Trigger_EthicalCheck:
|
||||||
|
permissions:
|
||||||
|
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
|
||||||
|
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -57,8 +62,8 @@ jobs:
|
|||||||
email: "[email protected]"
|
email: "[email protected]"
|
||||||
sarif-result-file: "ethicalcheck-results.sarif"
|
sarif-result-file: "ethicalcheck-results.sarif"
|
||||||
|
|
||||||
- name: Upload sarif file to repository
|
- name: Upload sarif file to repository
|
||||||
uses: github/codeql-action/upload-sarif@v2
|
uses: github/codeql-action/upload-sarif@v2
|
||||||
with:
|
with:
|
||||||
sarif_file: ./ethicalcheck-results.sarif
|
sarif_file: ./ethicalcheck-results.sarif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user