Skip to content

Commit

Permalink
Merge pull request #298 from aquaproj/ci/limit-gha-permission
Browse files Browse the repository at this point in the history
ci: limit GitHub Actions Workflow permissions
  • Loading branch information
suzuki-shunsuke authored Dec 26, 2022
2 parents 0c9672b + 21da3da commit 9cab815
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/actionlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
branches: [main]
paths:
- .github/**
permissions:
contents: read
jobs:
default:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/renovate-config-validator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ on:
paths:
- .github/workflows/renovate-config-validator.yaml
- renovate.json5
permissions:
contents: read
jobs:
validate:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-actions-windows-bash.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
tags: [v*]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
normal:
runs-on: windows-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
tags: [v*]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
default:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
tags: [v*]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
default:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 9cab815

Please sign in to comment.