Skip to content

github-action: use ephemeral tokens with the required permissions #79

github-action: use ephemeral tokens with the required permissions

github-action: use ephemeral tokens with the required permissions #79

Workflow file for this run

name: test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: .go-version
- name: Run test
run: go test -v ./...
pre-commit:
name: Run pre-commit
runs-on: ubuntu-latest
steps:
- uses: elastic/oblt-actions/pre-commit@v1