From d3018a8f6e5e44be5469f0c31767d35ea2281d12 Mon Sep 17 00:00:00 2001 From: nathanmartinszup <63246935+nathanmartinszup@users.noreply.github.com> Date: Tue, 4 Jan 2022 16:55:35 -0300 Subject: [PATCH] workflow/security:chore - updating security workflow to use latest rc (#911) Signed-off-by: Nathan Martins --- .github/workflows/security.yml | 2 +- Makefile | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml index 573583085..6e0e20166 100644 --- a/.github/workflows/security.yml +++ b/.github/workflows/security.yml @@ -37,5 +37,5 @@ jobs: REPOSITORY_OWNER: ${{ github.event.pull_request.head.repo.full_name }} run: | echo "Repository Owner is: $REPOSITORY_OWNER" - curl -fsSL https://raw.githubusercontent.com/ZupIT/horusec/master/deployments/scripts/install.sh | bash -s latest + curl -fsSL https://raw.githubusercontent.com/ZupIT/horusec/master/deployments/scripts/install.sh | bash -s latest-rc horusec start -p . -e=$(if [ "$REPOSITORY_OWNER" == "ZupIT/horusec" ]; then echo "true"; else echo "false"; fi) -G --show-vulnerabilities-types="Vulnerability, Risk Accepted" diff --git a/Makefile b/Makefile index f50c37196..b0ba58549 100644 --- a/Makefile +++ b/Makefile @@ -14,8 +14,6 @@ PATH_BINARY_BUILD_CLI ?= $(GOPATH)/bin ARCH_ARM64 ?= arm64 ARCH_AMD64 ?= amd64 MAIN = ./cmd/app -LATEST_RC=$$(git ls-remote --exit-code --sort='v:refname' --tags https://github.com/ZupIT/horusec.git --ref 'v*.*.*-rc.*' | cut --delimiter='/' --fields=3 | tail --lines=1 | sed 's/.*\///; s/\^{}//') -LATEST_BETA=$$(git ls-remote --exit-code --sort='v:refname' --tags https://github.com/ZupIT/horusec.git --ref 'v*.*.*-beta.*' | cut --delimiter='/' --fields=3 | tail --lines=1 | sed 's/.*\///; s/\^{}//') lint: $(GO) install github.com/golangci/golangci-lint/cmd/golangci-lint@latest @@ -140,10 +138,10 @@ install: ./deployments/scripts/install.sh latest install-beta: - ./deployments/scripts/install.sh $(LATEST_BETA) + ./deployments/scripts/install.sh latest-beta install-rc: - ./deployments/scripts/install.sh $(LATEST_RC) + ./deployments/scripts/install.sh latest-rc pipeline: format lint test coverage security