feat(client): add Go SDK for hypercache-server clusters #183
Workflow file for this run
This file contains hidden or 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
| --- | |
| name: security | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| schedule: | |
| - cron: "0 3 * * 1" | |
| jobs: | |
| security: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Load project settings | |
| id: settings | |
| run: | | |
| set -a | |
| source .project-settings.env | |
| set +a | |
| echo "go_version=${GO_VERSION}" >> "$GITHUB_OUTPUT" | |
| - name: Setup Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: "${{ steps.settings.outputs.go_version }}" | |
| check-latest: true | |
| - name: Cache Go modules | |
| uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/go/pkg/mod | |
| ~/.cache/go-build | |
| key: ${{ runner.os }}-go-${{ steps.settings.outputs.go_version }}-${{ hashFiles('**/go.sum') }} | |
| restore-keys: | | |
| ${{ runner.os }}-go-${{ steps.settings.outputs.go_version }}- | |
| - name: Modules | |
| run: go mod download | |
| - name: govulncheck | |
| run: go install golang.org/x/vuln/cmd/govulncheck@latest && govulncheck ./... | |
| - name: gosec | |
| run: go install github.com/securego/gosec/v2/cmd/gosec@latest && gosec -exclude-generated -exclude-dir=__examples/size ./... |