Applies permission to GH workflows

This commit is contained in:
Lukasz Lenart
2022-12-09 10:25:59 +01:00
parent 0e62b4b534
commit 0b67350084
2 changed files with 11 additions and 1 deletions
+9 -1
View File
@@ -20,6 +20,14 @@ on:
branches: [ "master" ]
pull_request:
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write
actions: read
contents: read
# Needed to access OIDC token.
id-token: write
jobs:
analyze:
name: Analyze
@@ -38,7 +46,7 @@ jobs:
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@v2
- name: Perform CodeQL Analysis
+2
View File
@@ -21,6 +21,8 @@ on:
branches:
- master
permissions: read-all
env:
MAVEN_OPTS: -Xmx2048m -Xms1024m
LANG: en_US.utf8