Skip to content

Commit

Permalink
ci: fix security scan input path
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 c42a8a8
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 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,7 +97,7 @@ jobs:
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
input: /github/workspace/flagd-local.tar
input: ${{ github.workspace }}/flagd-local.tar
format: "template"
template: "@/contrib/sarif.tpl"
output: "trivy-results.sarif"
Expand All @@ -123,7 +120,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 c42a8a8

Please sign in to comment.