diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 5439c4b..84b4239 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -15,14 +15,17 @@ RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/ # [Optional] Uncomment the next lines to use go get to install anything else you need USER vscode -# Installing govulncheck && tools used by VSCode Go Extension+ -RUN go install golang.org/x/vuln/cmd/govulncheck@latest +# Installing tools used by VSCode Go Extension+ RUN go install github.com/cweill/gotests/gotests@latest RUN go install github.com/fatih/gomodifytags@latest RUN go install github.com/go-delve/delve/cmd/dlv@latest RUN go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest RUN go install golang.org/x/tools/gopls@latest +# Installing govulncheck +ARG VULNCHECK_VERSION="v0.1.0" +RUN go install golang.org/x/vuln/cmd/govulncheck@$VULNCHECK_VERSION + # [Optional] Uncomment this line to install global node packages. # RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g " 2>&1 diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 6374f66..ddb3c5f 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -10,7 +10,8 @@ // Use -bullseye variants on local arm64/Apple Silicon. "VARIANT": "1.20-bullseye", // Options - "NODE_VERSION": "none" + "NODE_VERSION": "none", + "VULNCHECK_VERSION": "v0.1.0" } }, "runArgs": [ @@ -48,13 +49,13 @@ } }, "extensions": [ - "golang.Go", - "streetsidesoftware.code-spell-checker", - "premparihar.gotestexplorer", - "wayou.vscode-todo-highlight", - "bierner.github-markdown-preview", - "GitHub.vscode-github-actions" - ] + "golang.Go", + "streetsidesoftware.code-spell-checker", + "premparihar.gotestexplorer", + "wayou.vscode-todo-highlight", + "bierner.github-markdown-preview", + "GitHub.vscode-github-actions" + ] } }, // Set *default* container specific settings.json values on container create. diff --git a/Dockerfile b/Dockerfile index d47a441..b856aa2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,7 @@ COPY . . RUN CGO_ENABLED=0 go build -ldflags="-w -s" -v -o action . # This golang version determines in which golang environment the customer code is checked FROM golang:$GOLANG_VERSION -ARG VULNCHECK_VERSION=latest +ARG VULNCHECK_VERSION=v0.1.0 RUN go install golang.org/x/vuln/cmd/govulncheck@$VULNCHECK_VERSION # This allows private repositories hosted on Github