Skip to content

Commit

Permalink
workflow/security:chore - updating security workflow to use latest rc (
Browse files Browse the repository at this point in the history
…#911)

Signed-off-by: Nathan Martins <nathan.martins@zup.com.br>
  • Loading branch information
nathanmartinszup authored Jan 4, 2022
1 parent 0df35e4 commit d3018a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit d3018a8

Please # to comment.