Skip to content

Commit

Permalink
common: add some permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Oksana Salyk committed Jan 30, 2025
1 parent e285cda commit 540e28d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/scan_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
CODECOV_TOKEN:
required: true

permissions:
actions: read
contents: read
security-events: write

env:
# Note: All coverage scans, e.g. on pull requests, should be run in the same
# environment.
Expand All @@ -24,8 +29,6 @@ env:
TEST_BUILD: debug
FAULT_INJECTION: 1

permissions: {}

jobs:
linux:
name: Linux
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/scans.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ jobs:
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
name: Coverage
permissions:
actions: read
contents: read
security-events: write
call-documentation:
uses: ./.github/workflows/scan_documentation.yml
name: Documentation
Expand Down

0 comments on commit 540e28d

Please sign in to comment.