Skip to content

Commit

Permalink
Restricted GITHUB_TOKEN_PERMISSION (#23)
Browse files Browse the repository at this point in the history
* restricted GITHUB_TOKEN_PERMISSION

* cargo fmt fix

* test permission

* job permissions
  • Loading branch information
ruokun-niu authored Sep 10, 2024
1 parent 55bf512 commit 0eb41b6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
env:
CARGO_TERM_COLOR: always

permissions:
contents: read


jobs:
coverage_with_code_cov:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/devskim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
schedule:
- cron: '30 0 * * 0' #runs every Sunday at 00:30 UTC

permissions:
contents: read

jobs:
lint:
name: DevSkim
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,18 @@ on:
env:
CARGO_TERM_COLOR: always

permissions:
contents: read


jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
issues: read
checks: write
pull-requests: write
services:
redis:
image: redis:7-alpine
Expand Down

0 comments on commit 0eb41b6

Please sign in to comment.