Skip to content

Commit

Permalink
Run shellcheck against ./script/* (dependabot#5820)
Browse files Browse the repository at this point in the history
A few more places we can run shellcheck against...
  • Loading branch information
jeffwidman authored Jan 19, 2023
1 parent bd376f0 commit 5024751
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 0 additions & 2 deletions bin/ci-test
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ function build() {
export CORE=dependabot/dependabot-core
export UPDATER=dependabot/dependabot-updater

# shellcheck disable=SC2034 # shellcheck isn't smart enough to realize `docker build` uses `TARGETARCH`
local TARGETARCH;
# shellcheck disable=SC2034 # shellcheck isn't smart enough to realize `docker build` uses `TARGETARCH`
case "$(uname -m)"
in
Expand Down
2 changes: 2 additions & 0 deletions bin/lint
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ shellcheck \
./*/helpers/*/build \
./*/helpers/build \
./*/script/* \
./script/* \
./updater/bin/run \
"$@"

bundle exec rubocop
2 changes: 2 additions & 0 deletions script/_common
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# shellcheck shell=bash
export LOCAL_IMAGE="dependabot/updater:latest"
export GPR_IMAGE="docker.pkg.github.com/dependabot/dependabot-updater/dependabot-updater"

Expand All @@ -6,6 +7,7 @@ function docker_build() {

extract_version

# shellcheck disable=SC2086 # as $DOCKER_BUILD_ARGS relies on word-splitting
docker build $DOCKER_BUILD_ARGS -f Dockerfile.updater -t "$LOCAL_IMAGE" --build-arg OMNIBUS_VERSION .

# Verify max layers; an AUFS limit that was _crucial_ on Heroku (but not now)
Expand Down
2 changes: 1 addition & 1 deletion script/setup
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ if [ -z "$GPR_TOKEN" ]; then
fi

# Log into GPR to pull downstream images
echo $GPR_TOKEN | docker login docker.pkg.github.com -u x --password-stdin
echo "$GPR_TOKEN" | docker login docker.pkg.github.com -u x --password-stdin
docker_build

0 comments on commit 5024751

Please sign in to comment.