Skip to content

Commit 8362a80

Browse files
authored
Include necessary permission to upload results.
GitHub requires write permission to `security-events` to upload analysis results to code scanning. https://docs.github.com/en/rest/code-scanning#upload-an-analysis-as-sarif-data
1 parent 3a6de84 commit 8362a80

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/hlint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ jobs:
1818
hlint:
1919
name: HLint
2020
runs-on: ubuntu-latest
21+
permissions:
22+
# Needed to upload results to GitHub code scanning.
23+
security-events: write
2124
steps:
2225
- uses: actions/checkout@v3
2326
- name: Check site.hs with hlint

0 commit comments

Comments
 (0)