Skip to content

Bump step-security/harden-runner from 2.9.1 to 2.10.1 #44

Bump step-security/harden-runner from 2.9.1 to 2.10.1

Bump step-security/harden-runner from 2.9.1 to 2.10.1 #44

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@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
api.github.com:443
checkpoint-api.hashicorp.com:443
github.com:443
objects.githubusercontent.com:443
proxy.golang.org:443
storage.googleapis.com:443
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
- name: Set up Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
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 ./...