Skip to content

Commit f10bbb3

Browse files
committed
ci(gh-actions): bash strict mode
1 parent 6fcb97f commit f10bbb3

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

.github/workflows/docker-build-push.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ jobs:
8686
run: |
8787
set -euo pipefail
8888
IFS=$'\n\t'
89-
# shellcheck disable=SC2086
90-
VERSION="$(\grep ${IMAGE}/Dockerfile -e '^FROM' | \head -n 1 | \sed -e 's/@.*$//; s/^.*://;')"
89+
VERSION="$(\grep "${IMAGE}/Dockerfile" -e '^FROM' | \head -n 1 | \sed -e 's/@.*$//; s/^.*://;')"
9190
if [[ "${VERSION}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] ; then
9291
echo "VERSION=${VERSION}" >> "${GITHUB_ENV}"
9392
fi

.github/workflows/docker-release.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,8 @@ jobs:
6565
run: |
6666
set -euo pipefail
6767
IFS=$'\n\t'
68-
images=""
68+
images=()
6969
for tag in ${TAGS}; do
70-
images+="${tag}@${DIGEST} "
70+
images+=("${tag}@${DIGEST}")
7171
done
72-
# shellcheck disable=SC2086
73-
cosign sign --recursive --yes ${images}
72+
cosign sign --recursive --yes "${images[@]}"

.github/workflows/maven-dependency-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
set -euo pipefail
4343
IFS=$'\n\t'
4444
# shellcheck disable=SC2086
45-
./mvnw ${MAVEN_CLI_OPTS} -DdependencyCheck.NVDApiKey=${NVD_API_KEY} dependency-check:aggregate
45+
IFS=$' \n\t' ./mvnw ${MAVEN_CLI_OPTS} -DdependencyCheck.NVDApiKey=${NVD_API_KEY} dependency-check:aggregate
4646
- name: Upload artifacts
4747
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
4848
with:

0 commit comments

Comments
 (0)