Skip to content

Commit e73134a

Browse files
committed
fix(ci): add required permissions for reusable workflows
- Add pull-requests read permission for lint workflow - Add checks write permission for test workflow - Fix workflow permission inheritance
1 parent 5c46bb8 commit e73134a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,18 @@ jobs:
3434
lint:
3535
name: Lint Check
3636
uses: ./.github/workflows/lint.yml
37+
permissions:
38+
contents: read
39+
pull-requests: read
3740

3841
# Call the test workflow next
3942
test:
4043
name: Run Tests
41-
needs: [lint] # Run tests after lint passes
44+
needs: [lint]
4245
uses: ./.github/workflows/test.yml
46+
permissions:
47+
contents: read
48+
checks: write
4349

4450
# Finally run the release job
4551
release:

0 commit comments

Comments
 (0)