This repository has been archived by the owner on Aug 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from strvcom/ci/SGO-114-workflows
ci: updated workflows
- Loading branch information
Showing
7 changed files
with
87 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Setup Go | ||
description: | | ||
Setup Go | ||
inputs: | ||
go-version: | ||
description: Used Go version | ||
default: '1.19' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- id: go-version | ||
run: | | ||
echo "Go version is set to ${{ inputs.go-version }}" | ||
echo "GO_VERSION=${{ inputs.go-version }}" >> $GITHUB_ENV | ||
shell: bash | ||
- id: go-setup | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
- run: | | ||
go mod download | ||
shell: bash |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Lint | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- 'master' | ||
release: | ||
types: [ published ] | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
permissions: | ||
contents: read | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Install Go | ||
uses: ./.github/actions/setup-go | ||
- name: Run golangci-lint | ||
uses: golangci/golangci-lint-action@v3 | ||
with: | ||
version: v1.50.1 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Vulnerability scan | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- 'master' | ||
release: | ||
types: [ published ] | ||
|
||
jobs: | ||
vulnerability-scan: | ||
name: Vulnerability scan | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Install Go | ||
uses: ./.github/actions/setup-go | ||
- name: Install govulncheck | ||
run: | | ||
go install golang.org/x/vuln/cmd/govulncheck@latest | ||
- name: Run govulncheck | ||
run: | | ||
govulncheck ./... | ||
- name: Install OSV Scanner | ||
run: | | ||
go install github.com/google/osv-scanner/cmd/osv-scanner@v1 | ||
- name: Run OSV Scanner | ||
run: | | ||
osv-scanner -r . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters