Skip to content

Commit

Permalink
ci: fix overly broad permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Sysix committed Jan 20, 2025
1 parent c80cb4f commit 9bddb95
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
- main
- 'renovate/**'

permissions: {}

jobs:
build:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/bump_oxlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ on:
env:
OXLINT_PACKAGE_NAME: oxlint

permissions: {}

jobs:
bump:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci_security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ on:
paths:
- '.github/workflows/**'

permissions: {}

jobs:
zizmor:
name: zizmor
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
- main
- 'renovate/**'

permissions: {}

jobs:
format:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ on:
- 'scripts/**'
- '.github/workflows/generate.yml'

permissions: {}

jobs:
generate:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
- main
- 'renovate/**'

permissions: {}

jobs:
lint:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches: [main]

permissions: {}

jobs:
release:
if: startsWith(github.event.head_commit.message, 'release')
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
- main
- 'renovate/**'

permissions: {}

jobs:
test:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/type-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
- main
- 'renovate/**'

permissions: {}

jobs:
type-check:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 9bddb95

Please sign in to comment.