Skip to content

ci: fix permissions

ci: fix permissions #2

Workflow file for this run

name: Test
on:
push:
branches: [ "**" ]
pull_request:
branches: [ "**" ]
jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
permissions:
actions: read
attestations: read
checks: read
contents: read
deployments: read
id-token: write|none

Check failure on line 19 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / Test

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 19, Col: 17): Unexpected value 'write|none' .github/workflows/test.yml (Line: 21, Col: 15): Unexpected value 'read|none'
issues: read
models: read|none
discussions: read
packages: read
pages: read
pull-requests: read
security-events: read
statuses: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
- name: Display Go version
run: go version
- name: Run make fmt
run: make fmt
- name: Run make mocks
run: make mocks
- name: Run make build
run: make build
- name: Run make test
run: make test