Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
if: env.SONAR_TOKEN != ''

- name: Vulnerability Check
run: |

Check warning

Code scanning / SonarCloud

Go dependencies should be locked to verified versions Medium

Dependency versions are not predictable. Use a lock-file enforcing command instead. See more on SonarQube Cloud
go install golang.org/x/vuln/cmd/govulncheck@3e6f44f962742443c11ae2261f02e0c917aeb2bc
govulncheck ./...

build-test:
name: Build & Test - Go ${{ matrix.go-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,9 @@
args: >
-Dsonar.pullrequest.key=${{ inputs.pr_id }}
-Dsonar.pullrequest.branch=${{ steps.pr.outputs.head_ref }}
-Dsonar.pullrequest.base=${{ steps.pr.outputs.base_ref }}
-Dsonar.pullrequest.base=${{ steps.pr.outputs.base_ref }}

- name: Vulnerability Check
run: |

Check warning

Code scanning / SonarCloud

Go dependencies should be locked to verified versions Medium

Dependency versions are not predictable. Use a lock-file enforcing command instead. See more on SonarQube Cloud
go install golang.org/x/vuln/cmd/govulncheck@3e6f44f962742443c11ae2261f02e0c917aeb2bc
govulncheck ./...
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.PHONY: test fmt cover cover-html lint lint-install godoc-install docs
.PHONY: test fmt cover cover-html lint lint-install godoc-install docs vulncheck vulncheck-install

GOLANGCI_LINT_VERSION=v2.12.2
GOVULNCHECK_VERSION=v1.5.0

test-clean:
go clean -testcache
Expand All @@ -25,3 +26,9 @@ cover:

cover-html:
go tool cover -html="coverage.out"

vulncheck-install:
go install golang.org/x/vuln/cmd/govulncheck@$(GOVULNCHECK_VERSION)

vulncheck:
govulncheck ./...
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ A Go SDK for Switcher API
[![Master CI](https://github.com/switcherapi/switcher-client-go/actions/workflows/master.yml/badge.svg)](https://github.com/switcherapi/switcher-client-go/actions/workflows/master.yml)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=switcherapi_switcher-client-go&metric=alert_status)](https://sonarcloud.io/dashboard?id=switcherapi_switcher-client-go)
![Known Vulnerabilities](https://snyk.io/test/github/switcherapi/switcher-client-go/badge.svg)
[![Go Report Card](https://goreportcard.com/badge/github.com/switcherapi/switcher-client-go)](https://goreportcard.com/report/github.com/switcherapi/switcher-client-go)
![Go](https://img.shields.io/badge/go-1.25%2B-blue.svg)
![Status](https://img.shields.io/badge/status-under_development-orange.svg)
![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)
Expand Down