Skip to content

Commit f502d20

Browse files
authored
Merge pull request #410 from chungyc/main
Fix permission and paths for HLint action.
2 parents 0a636b6 + 8362a80 commit f502d20

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/hlint.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ name: HLint
33
on:
44
push:
55
paths:
6-
- '**/site.hs'
6+
- 'message-index/site.hs'
77
branches:
88
- main
99
pull_request:
1010
paths:
11-
- '**/site.hs'
11+
- 'message-index/site.hs'
1212
types:
1313
- opened
1414
- synchronize
@@ -18,11 +18,14 @@ 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
2427
uses: haskell-actions/hlint-scan@v1
2528
with:
2629
path: |
27-
**/site.hs
28-
hints: message_index/.hlint.yml
30+
message-index/site.hs
31+
hints: message-index/.hlint.yml

0 commit comments

Comments
 (0)