Skip to content

Commit

Permalink
setup go
Browse files Browse the repository at this point in the history
  • Loading branch information
friedrichwilken committed Feb 5, 2024
1 parent 1fec4c1 commit 83e6744
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/bump-sec-scanners-config-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,16 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version: "stable"

- name: "Setup yq" # Required for rendering the sec-scanners-config.
shell: bash
run: |
go install github.com/mikefarah/yq/v4@latest
echo PATH=$PATH:$(go env GOPATH)/bin >> $GITHUB_ENV
PATH=$PATH:$(go env GOPATH)/bin
echo PATH="${PATH}">> $GITHUB_ENV
echo $PATH
- name: Render sec-scanners-config.yaml
Expand All @@ -80,7 +85,9 @@ jobs:
PATH: ${{ env.PATH }}
shell: bash
# Where ever you use this workflow, the script hack/scripts/render-sec-scanners-config.sh must exist.
run: ./hack/scripts/render-sec-scanners-config.sh "${VERSION}"
run: |
yq --version
./hack/scripts/render-sec-scanners-config.sh "${VERSION}"
# Check if there are changes so we can determin if all following steps can be skipped.
- name: Check for changes
Expand Down

0 comments on commit 83e6744

Please sign in to comment.