Skip to content

Commit b7f6fec

Browse files
Create shellcheck.yml
🚀 shellcheck scanning.
1 parent 8a647f2 commit b7f6fec

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/shellcheck.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: ShellCheck SARIF
2+
on: [push, pull_request]
3+
4+
permissions: {} # Setting default permissions to none for enhanced security
5+
6+
jobs:
7+
shellcheck:
8+
permissions:
9+
contents: read # for actions/checkout to fetch code
10+
pull-requests: read # to get PR metadata
11+
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
12+
name: ShellCheck Analysis
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
17+
with:
18+
persist-credentials: false
19+
- name: Shellcheck Scan
20+
uses: reactive-firewall/shellcheck-scan@v1
21+
with: # optional arguments
22+
match: 'tests/* **/*.bash'
23+
publish-artifacts: true
24+
if: ${{ success() }}

0 commit comments

Comments
 (0)