diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 232743ef4e0db..90859d4f6554c 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -16,9 +16,10 @@ jobs: name: Analyze (${{ matrix.language }}) runs-on: ubuntu-latest permissions: + # required to fetch on gmbh + contents: read # required for all workflows security-events: write - # required to fetch internal or private CodeQL packs packages: read diff --git a/.github/workflows/static-code-analysis.yml b/.github/workflows/static-code-analysis.yml index 8c03a175b3ff2..b9b9c35361a87 100644 --- a/.github/workflows/static-code-analysis.yml +++ b/.github/workflows/static-code-analysis.yml @@ -24,6 +24,10 @@ jobs: changes: runs-on: ubuntu-latest-low + permissions: + contents: read + pull-requests: read + outputs: src: ${{ steps.changes.outputs.src }}