Skip to content

Commit

Permalink
⬆️ 📌 Update & Pinned govulncheck to 0.1.0 (#38)
Browse files Browse the repository at this point in the history
* ⬆️ 📌 Update & Pinned govulncheck to 0.1.0

* 🐛 Added missing ARG in Devcontainer
  • Loading branch information
Templum committed Apr 25, 2023
1 parent 7c461dd commit 435a35e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
7 changes: 5 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 <your-package-here>" 2>&1
17 changes: 9 additions & 8 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 435a35e

Please sign in to comment.