Skip to content

Add static analysis checks #2

Add static analysis checks

Add static analysis checks #2

Workflow file for this run

name: static-analysis
on: [ pull_request ]
jobs:
static-analysis:
name: static-analysis
# Skip any PR created by dependabot to avoid permission issues:
if: (github.actor != 'dependabot[bot]')
permissions:
checks: write
contents: read
pull-requests: write
runs-on: ubuntu-latest
# container:
# # A Docker image with Semgrep installed. Do not change this.
# image: returntocorp/semgrep
steps:
- uses: actions/checkout@v3
- uses: returntocorp/semgrep-action@v1
- uses: reviewdog/action-setup@v1
with:
reviewdog_version: latest
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
- name: Run reviewdog
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: reviewdog -reporter=github-pr-review