Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the fix.

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
Loading