Skip to content

security: add permissions block to workflows (#17) #13

security: add permissions block to workflows (#17)

security: add permissions block to workflows (#17) #13

Workflow file for this run

name: ci
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
# limit the access of the generated GITHUB_TOKEN
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [oldstable, stable]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
cache: true
cache-dependency-path: '**/go.sum'
- name: Unit tests
run: go test -v ./...