Skip to content

Commit

Permalink
common: add some changes to 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 aed20d1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 6 additions & 3 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 All @@ -41,7 +44,7 @@ jobs:
run: cd $WORKDIR && ./build-CI.sh

- name: Upload coverage to Codecov
uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # v5.3.1
uses:
with:
root_dir: /home/runner/work/pmdk/pmdk/
directory: /home/runner/work/pmdk/pmdk/
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 aed20d1

Please sign in to comment.