Skip to content

Commit 1facc21

Browse files
committed
ci: fix permissions for sarif upload
By explicitly stating permissions for the test comments action, we have dropped default permissions for detekt to upload the sarif file.
1 parent dcc8d93 commit 1facc21

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ jobs:
1313

1414
runs-on: ubuntu-latest
1515

16-
# Cf. https://github.com/marketplace/actions/publish-test-results#permissions
1716
permissions:
17+
# Cf. https://github.com/marketplace/actions/publish-test-results#permissions
1818
checks: write
1919
pull-requests: write
20+
# For detekt
21+
security-events: write
2022

2123
steps:
2224
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)