Skip to content

Commit c74a9b0

Browse files
chore: put permissions above jobs
1 parent bc29d0d commit c74a9b0

4 files changed

+6
-8
lines changed

.github/workflows/cd-deploy-to-dev.yml

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
name: Deploy to dev
22

3-
permissions: read-all
4-
53
on:
64
pull_request:
75
types: [opened, synchronize, reopened, labeled]

.github/workflows/cd-deploy-to-prod.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
name: Deploy to prod
22

3-
permissions: read-all
4-
53
on:
64
release:
75
types:
@@ -14,6 +12,8 @@ concurrency:
1412
group: ${{ github.workflow }}-${{ github.job }}-${{ github.head_ref || github.run_id }}
1513
cancel-in-progress: true
1614

15+
permissions: read-all
16+
1717
jobs:
1818
build:
1919
# needs: [test]

.github/workflows/cd-deploy-to-test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
name: Deploy to test
22

3-
permissions: read-all
4-
53
on:
64
push:
75
branches:
@@ -20,6 +18,8 @@ concurrency:
2018
group: ${{ github.workflow }}-${{ github.job }}-${{ github.head_ref || github.run_id }}
2119
cancel-in-progress: true
2220

21+
permissions: read-all
22+
2323
jobs:
2424
build:
2525
uses: ./.github/workflows/sub-build-docker-image.yml

.github/workflows/ci-lint-codebase.patch.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
name: Lint Code Base
22

3-
permissions: read-all
4-
53
on:
64
pull_request:
75
branches: [main]
@@ -11,6 +9,8 @@ on:
119
- 'etc/litestream.yml'
1210
- .github/workflows/ci-lint-codebase.yml
1311

12+
permissions: read-all
13+
1414
jobs:
1515
linter:
1616
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)