diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index f75095d..b6aa943 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -1,5 +1,7 @@ on: [workflow_call] + name: "Check" + permissions: {} jobs: @@ -7,19 +9,21 @@ jobs: name: shellcheck runs-on: ubuntu-latest steps: - - - name: Checkout code - uses: actions/checkout@v7 - - parallel: - - - name: Run ShellCheck - uses: ludeeus/action-shellcheck@master - env: - SHELLCHECK_OPTS: -x --source-path=src -e SC3333,SC3043 - - name: Lint Dockerfile - uses: hadolint/hadolint-action@v3.3.0 - with: - dockerfile: Dockerfile.custom - ignore: DL3008,SC3037,DL4006,DL3062,DL4001 - failure-threshold: warning + name: Checkout code + uses: actions/checkout@v7 + - parallel: + - + name: Run ShellCheck + uses: ludeeus/action-shellcheck@master + with: + ignore_names: entrypoint.sh + env: + SHELLCHECK_OPTS: -x + - + name: Lint Dockerfile + uses: hadolint/hadolint-action@v3.3.0 + with: + dockerfile: Dockerfile.custom + ignore: DL3008,DL3062,DL4006,DL4001 + failure-threshold: warning diff --git a/Dockerfile.custom b/Dockerfile.custom index 0878fd3..e7cc957 100644 --- a/Dockerfile.custom +++ b/Dockerfile.custom @@ -25,7 +25,7 @@ RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -a -installsuffix c # default config COPY ./CasaOS-Gateway/build/sysroot/etc/casaos/gateway.ini.sample /etc/casaos/gateway.ini -RUN mkdir -p /var/run/casaos/ && echo -n "{}" >> /var/run/casaos/routes.json +RUN mkdir -p /var/run/casaos/ && printf '%s' '{}' >> /var/run/casaos/routes.json ############################################################################################################ # Build the Go binary for the User Service