Skip to content

chore(deps): bump actions/upload-artifact from 4.5.0 to 4.6.0 in the actions group #157

chore(deps): bump actions/upload-artifact from 4.5.0 to 4.6.0 in the actions group

chore(deps): bump actions/upload-artifact from 4.5.0 to 4.6.0 in the actions group #157

Workflow file for this run

name: build
on:
push:
branches:
- "main"
pull_request:
permissions: {}
jobs:
govulncheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version-file: ./go.mod
check-latest: true
- name: govulncheck
run: |
go install golang.org/x/vuln/cmd/govulncheck@latest
govulncheck ./...
semgrep:
runs-on: ubuntu-latest
container:
image: returntocorp/semgrep
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
repository: dgryski/semgrep-go
path: rules
- name: semgrep
run: semgrep scan --error --enable-nosem -f ./rules .
ruleguard:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
repository: dgryski/semgrep-go
path: rules
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version-file: ./go.mod
check-latest: true
- name: setup-ruleguard
run: go install github.com/quasilyte/go-ruleguard/cmd/ruleguard@latest
- name: ruleguard
run: |
mv rules ../
go get -u github.com/quasilyte/go-ruleguard/dsl@latest
ruleguard -c=0 -rules ../rules/ruleguard.rules.go ./...
test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version-file: ./go.mod
check-latest: true
- uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v2.0.0
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: setup-tparse
run: go install github.com/mfridman/tparse@latest
- name: setup
run: |
task setup
task build
- name: test
run: ./scripts/test.sh
- uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2
with:
files: ./coverage.txt
token: ${{ secrets.CODECOV_TOKEN }}