Skip to content

Commit 4ba3500

Browse files
authored
Merge pull request #2940 from testssl/shellcheck_cherrypicked_2428
Shellcheck cherrypicked from PR #2428
2 parents f219fd6 + d4cc414 commit 4ba3500

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.github/workflows/shellcheck.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Shellcheck
3+
on: [pull_request]
4+
permissions:
5+
contents: read
6+
7+
jobs:
8+
shellcheck:
9+
name: Shellcheck
10+
runs-on: ubuntu-24.04
11+
env:
12+
LANG: C.UTF-8
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Install shellcheck
17+
run: sudo apt update && sudo apt install -y shellcheck && shellcheck --version
18+
19+
- name: Check shell scripts
20+
run: shellcheck -x -P "SCRIPTDIR"/utils --severity=error testssl.sh

testssl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ declare TLS_CIPHER_OSSL_NAME=()
462462
declare TLS_CIPHER_RFC_NAME=()
463463
declare TLS_CIPHER_SSLVERS=()
464464
declare TLS_CIPHER_KX=()
465-
# shellcheck disable=SC2034 . This is a false positive
465+
# shellcheck disable=SC2034,SC1125 # False positives
466466
declare TLS_CIPHER_AUTH=()
467467
declare TLS_CIPHER_ENC=()
468468
declare TLS_CIPHER_EXPORT=()

0 commit comments

Comments
 (0)