Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

ci: add perms

ci: add perms #3

Workflow file for this run

name: Test & Lint
on:
push:
paths:
- '**.go'
- 'go.mod'
- '.github/workflows/reviewdog.yml'
pull_request:
paths:
- '**.go'
- 'go.mod'
- '.github/workflows/reviewdog.yml'
jobs:
review-dog:
permissions:
checks: write
contents: read
pull-requests: write
name: Review Dog
runs-on: ubuntu-latest
steps:
- name: Code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
cache: false
- run: go get
- run: go generate ./...
- name: GolangCI-Lint with review-dog
uses: reviewdog/action-golangci-lint@v2
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.REVIEW_DOG_TOKEN }}
GITHUB_TOKEN: ${{ secrets.REVIEW_DOG_TOKEN }}
with:
tool_name: 'golangci-lint'
level: 'warning'
reporter: 'github-pr-review'
golangci_lint_version: 'v1.61.0'
go_version: '1.22'
cache: false