Skip to content

Commit e970e0f

Browse files
authored
fix(ci): Fix workflows so they actually pass the secrets correctly (#835)
Signed-off-by: Dan Webb <dan.webb@damacus.io>
1 parent e5c51c4 commit e970e0f

4 files changed

Lines changed: 15 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ name: ci
88

99
jobs:
1010
lint-unit:
11-
uses: sous-chefs/.github/.github/workflows/lint-unit.yml@4.0.0
11+
uses: sous-chefs/.github/.github/workflows/lint-unit.yml@4.1.0
1212
permissions:
1313
actions: write
1414
checks: write
1515
pull-requests: write
1616
statuses: write
1717
issues: write
18+
secrets: inherit
1819

1920
integration:
2021
needs: lint-unit

.github/workflows/conventional-commits.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ name: 'Validate PR'
88
jobs:
99
conventional-commits:
1010
uses: sous-chefs/.github/.github/workflows/conventional-commits.yml@4.1.0
11-
with:
12-
token: ${{ secrets.GITHUB_TOKEN }}
11+
permissions:
12+
pull-requests: read
13+
secrets: inherit

.github/workflows/prevent-file-change.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@ jobs:
1010
uses: sous-chefs/.github/.github/workflows/prevent-file-change.yml@4.1.0
1111
permissions:
1212
pull-requests: write
13-
with:
14-
token: ${{ secrets.GITHUB_TOKEN }}
13+
secrets: inherit

.github/workflows/release.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ name: release-please
55
push:
66
branches: [main]
77

8+
permissions:
9+
contents: write
10+
issues: write
11+
pull-requests: write
12+
packages: write
13+
attestations: write
14+
id-token: write
15+
816
jobs:
917
release-cookbook:
1018
uses: sous-chefs/.github/.github/workflows/release-cookbook.yml@4.1.0
11-
permissions:
12-
contents: write
13-
issues: write
14-
pull-requests: write
15-
packages: write
16-
attestations: write
17-
id-token: write
18-
with:
19-
token: ${{ secrets.PORTER_GITHUB_TOKEN }}
19+
secrets: inherit

0 commit comments

Comments
 (0)