Skip to content

Limit GITHUB_TOKEN permissions #30

Limit GITHUB_TOKEN permissions

Limit GITHUB_TOKEN permissions #30

Workflow file for this run

name: ci
on:
pull_request:
branches: ['main']
push:
branches: ['main']
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version: '1.20'
check-latest: true
- uses: chainguard-dev/actions/goimports@538d1927b846546b620784754c33e2a1db86e217 # main
- run: |
go build ./...
go test ./... -race