Skip to content

Use harden-runner Action for all Workflows #34

Use harden-runner Action for all Workflows

Use harden-runner Action for all Workflows #34

Workflow file for this run

name: Go
on:
pull_request:
branches:
- '*'
permissions:
contents: read
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
with:
egress-policy: audit
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Check Code Generation
run: go generate ./... && git diff --exit-code
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...