Skip to content

ci(go-test): explicit workflow permissions #15

ci(go-test): explicit workflow permissions

ci(go-test): explicit workflow permissions #15

Workflow file for this run

name: go-test
on:
push:
tags:
- v*
branches:
- main
pull_request:
permissions:
content: read

Check failure on line 12 in .github/workflows/go-test.yml

View workflow run for this annotation

GitHub Actions / go-test

Invalid workflow file

The workflow is not valid. .github/workflows/go-test.yml (Line: 12, Col: 3): Unexpected value 'content'
jobs:
go-test:
name: go-test
strategy:
matrix:
go-version: [1.22.x, 1.23.x, 1.24.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: go-test
run: go test ./...