Skip to content

[StepSecurity] ci: Harden GitHub Actions #382

[StepSecurity] ci: Harden GitHub Actions

[StepSecurity] ci: Harden GitHub Actions #382

Workflow file for this run

name: Run Tests
on: [pull_request]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@v2
with:
egress-policy: audit
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.21
id: go
- name: Checkout
uses: actions/checkout@v4
- name: Build
env:
CGO_ENABLED: 0
run: go build -v
- name: Run Tests
run: |
bash ./test.sh