diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index b217cecb6..d81b630e1 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -14,8 +14,15 @@ on: schedule: - cron: '0 8 * * 1' +permissions: + contents: read # to fetch code (actions/checkout) + jobs: analyze: + permissions: + contents: read # to fetch code (actions/checkout) + security-events: write # (github/codeql-action/autobuild) + name: Analyze runs-on: ubuntu-latest diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 4652e77f2..fb360220d 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -2,6 +2,9 @@ name: Java CI on: [push, pull_request] +permissions: + contents: read # to fetch code (actions/checkout) + jobs: build: