Skip to content

Commit

Permalink
ci: fix security scan input path (#1426)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
  • Loading branch information
beeme1mr authored Oct 18, 2024
1 parent 8583f68 commit c7237f0
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ on:
- "README.md"
- "docs/**"

env:
GO_VERSION: '~1.21'

jobs:
lint:
runs-on: ubuntu-latest
Expand All @@ -30,7 +27,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: 'flagd/go.mod'
- run: make workspace-init
- run: make lint

Expand All @@ -42,7 +39,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: 'flagd/go.mod'
- run: make workspace-init
- run: make generate-docs
- name: Check no diff
Expand All @@ -60,7 +57,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: 'flagd/go.mod'
- run: make workspace-init
- run: make test
- name: Upload coverage to Codecov
Expand All @@ -78,7 +75,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: 'flagd/go.mod'

- name: Set up QEMU
uses: docker/setup-qemu-action@master
Expand All @@ -100,9 +97,8 @@ jobs:
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
input: /github/workspace/flagd-local.tar
format: "template"
template: "@/contrib/sarif.tpl"
input: ${{ github.workspace }}/flagd-local.tar
format: "sarif"
output: "trivy-results.sarif"
severity: "CRITICAL,HIGH"

Expand All @@ -123,7 +119,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: 'flagd/go.mod'

- name: Workspace init
run: make workspace-init
Expand Down

0 comments on commit c7237f0

Please sign in to comment.