Skip to content

Bump step-security/harden-runner from 2.10.2 to 2.10.3 #383

Bump step-security/harden-runner from 2.10.2 to 2.10.3

Bump step-security/harden-runner from 2.10.2 to 2.10.3 #383

Workflow file for this run

name: Code-Generation
on:
pull_request:
branches:
- 'main'
push:
branches:
- 'main'
permissions:
contents: read
jobs:
generate:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@c95a14d0e5bab51a9f56296a4eb0e416910cd350 # v2.10.3
with:
egress-policy: audit
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version-file: ./go.mod
- run: go generate ./...
- name: git diff
run: |
git diff --compact-summary --exit-code || \
(echo; echo "Unexpected difference in directories after code generation. Run 'go generate ./...' command and commit."; exit 1)