Skip to content

Commit

Permalink
Ci token protection fix (#244)
Browse files Browse the repository at this point in the history
* Update _CI_coverage_compare.yml

changing default permissions to only content:write

* Update _CI_update.yml

* Update CI.yml

* Update _CI_coverage_compare.yml

* Update _CI_update.yml

* Update _CI_coverage_compare.yml

* Update CI.yml

* Update _CI_coverage_compare.yml
  • Loading branch information
michaelbeale-IL authored Oct 28, 2024
1 parent 7d82ed1 commit de38f03
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ jobs:
secrets: inherit

Results:
permissions:
contents: write
issues: write
pull-requests: write

# name: Compare code coverage
needs: [Testing]
uses: ./.github/workflows/_CI_coverage_compare.yml
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/_CI_coverage_compare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ on:
description: "The Python Coverage for source"
type: string

permissions: read-all
permissions:
contents: write
issues: write
pull-requests: write

jobs:
compare_coverage:
permissions:
contents: write
name: Compare Reported Coverage
runs-on: ubuntu-latest
steps:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/_CI_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ on:
description: "Status of coverage tests (passed/failed)"
type: string

permissions: read-all
permissions:
contents: write

jobs:
commit_job:
Expand Down

0 comments on commit de38f03

Please sign in to comment.