Skip to content

Commit affd4ea

Browse files
committed
lint: switch to shellcheck-scan
1 parent 9663bc5 commit affd4ea

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/lint.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,22 @@ on:
88
jobs:
99
shellcheck:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
security-events: write
13+
contents: read
1114
steps:
1215
- name: Checkout
1316
uses: actions/checkout@v5
1417

18+
- name: Create requirements.txt
19+
if: hashFiles('**/requirements.txt', '**/pyproject.toml') == ''
20+
run: touch ./requirements.txt
21+
1522
- name: Check
16-
run: shellcheck .env build-* fetch
23+
uses: reactive-firewall/shellcheck-scan@v1
24+
with:
25+
match: .env build-* fetch
26+
publish-artifacts: ${{ github.ref_name == github.event.repository.default_branch }}
1727

1828
yamllint:
1929
runs-on: ubuntu-latest

.yamllint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@ extends: default
33

44
rules:
55
truthy: disable
6+
line-length:
7+
max: 100
68
comments:
79
min-spaces-from-content: 1

0 commit comments

Comments
 (0)