Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add linters and CycloneDX SBOM generation #42

Merged
merged 3 commits into from
May 3, 2022
Merged
Changes from 1 commit
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
Prev Previous commit
Setup Go only on release for SBOM generation
  • Loading branch information
mostafa committed May 3, 2022
commit ae3de913d43540a114793ba500c480dc623249e3
11 changes: 6 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ jobs:
with:
fetch-depth: 0

- name: Install Go 🧑‍💻
uses: actions/setup-go@v3
with:
go-version: '1.18'

- name: Build 🏗️
id: build
uses: szkiba/xk6bundler@v0
Expand All @@ -28,6 +23,12 @@ jobs:
with: |
github.com/mostafa/xk6-kafka@latest

- name: Install Go 🧑‍💻
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: actions/setup-go@v3
with:
go-version: '1.18'

- name: Generate CycloneDX SBOM artifacts 📃
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
run: |
Expand Down