Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/actionlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ name: Action Lint

on:
pull_request:
branches: [ 'main', 'release-*' ]
branches:
- 'main'

permissions: {}

Expand All @@ -14,10 +15,16 @@ jobs:
action-lint:
name: Action lint
runs-on: ubuntu-latest

permissions:
contents: read

steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
with:
egress-policy: audit

- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/boilerplate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ name: Boilerplate

on:
pull_request:
branches: [ 'main', 'release-*' ]
branches:
- 'main'

permissions: {}

Expand All @@ -14,8 +15,10 @@ jobs:
check:
name: Boilerplate Check
runs-on: ubuntu-latest

permissions:
contents: read

strategy:
fail-fast: false # Keep running if one leg fails.
matrix:
Expand All @@ -34,10 +37,15 @@ jobs:
language: YAML

steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
with:
egress-policy: audit

- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- uses: chainguard-dev/actions/boilerplate@main
- uses: chainguard-dev/actions/boilerplate@5363dd9eb48083bbf7674a4bbe62d71c3b230edd # v1.1.2
with:
extension: ${{ matrix.extension }}
language: ${{ matrix.language }}
11 changes: 9 additions & 2 deletions .github/workflows/donotsubmit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ name: Do Not Submit

on:
pull_request:
branches: [ 'main', 'release-*' ]
branches:
- 'main'

permissions: {}

Expand All @@ -14,12 +15,18 @@ jobs:
donotsubmit:
name: Do Not Submit
runs-on: ubuntu-latest

permissions:
contents: read

steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
with:
egress-policy: audit

- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Do Not Submit
uses: chainguard-dev/actions/donotsubmit@main
uses: chainguard-dev/actions/donotsubmit@5363dd9eb48083bbf7674a4bbe62d71c3b230edd # v1.1.2
13 changes: 10 additions & 3 deletions .github/workflows/go-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ name: Test

on:
pull_request:
branches: [ 'main', 'release-*' ]
branches:
- 'main'
push:
branches: [ 'main', 'release-*' ]
branches:
- 'main'

permissions: {}

Expand All @@ -18,6 +20,11 @@ jobs:
permissions:
contents: read
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
with:
egress-policy: audit

- name: Check out code onto GOPATH
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

Expand All @@ -41,4 +48,4 @@ jobs:
check-latest: true

- run: |
go test -race ./...
go test -v -race ./...
20 changes: 20 additions & 0 deletions .github/workflows/style.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ jobs:
contents: read

steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
with:
egress-policy: audit

- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

Expand All @@ -44,6 +49,11 @@ jobs:
contents: read

steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
with:
egress-policy: audit

- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

Expand All @@ -64,6 +74,11 @@ jobs:
pull-requests: read

steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
with:
egress-policy: audit

- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Set up Go
Expand All @@ -87,6 +102,11 @@ jobs:
contents: read

steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
with:
egress-policy: audit

- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ name: Verify

on:
pull_request:
branches: [ 'main', 'release-*' ]
branches:
- 'main'
push:
branches: [ 'main', 'release-*' ]
branches:
- 'main'

permissions: {}

Expand All @@ -16,13 +18,19 @@ jobs:
verify:
name: Verify Codegen
runs-on: ubuntu-latest

permissions:
contents: read

env:
GOPATH: ${{ github.workspace }}

steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
with:
egress-policy: audit

- name: Check out code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
Expand Down Expand Up @@ -55,7 +63,7 @@ jobs:
./hack/update-codegen.sh

- name: Verify
uses: chainguard-dev/actions/nodiff@main
uses: chainguard-dev/actions/nodiff@5363dd9eb48083bbf7674a4bbe62d71c3b230edd # main
with:
path: ./src/github.com/${{ github.repository }}
fixup-command: "./hack/update-codegen.sh"
Loading