Update workflows with latest permissions.

This commit is contained in:
Alexander Shaduri
2024-05-28 11:19:51 +04:00
parent 844f6ed86f
commit 75f50cd5bb
2 changed files with 15 additions and 2 deletions
+7
View File
@@ -22,8 +22,15 @@ on:
schedule:
- cron: '27 22 * * 1'
permissions:
contents: read
jobs:
codacy-security-scan:
permissions:
contents: read # for actions/checkout to fetch code
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
name: Codacy Security Scan
runs-on: ubuntu-24.04
steps:
+8 -2
View File
@@ -25,10 +25,16 @@ jobs:
name: Analyze
runs-on: ubuntu-24.04
permissions:
actions: read
contents: read
# required for all workflows
security-events: write
# required to fetch internal or private CodeQL packs
#packages: read
# only required for workflows in private repositories
#actions: read
#contents: read
strategy:
fail-fast: false
matrix: