Skip to content

restrict GitHub Actions workflow permissions (#267) #691

restrict GitHub Actions workflow permissions (#267)

restrict GitHub Actions workflow permissions (#267) #691

Workflow file for this run

name: test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-24.04
strategy:
matrix:
go: ["1.25", "1.26"]
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: ${{ matrix.go }}
- run: make test-nodocker
- if: matrix.go == '1.26'
uses: codecov/codecov-action@v6
with:
token: ${{ secrets.CODECOV_TOKEN }}