mirror of
https://github.com/ivuorinen/.github.git
synced 2026-01-26 11:23:57 +00:00
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Ismo Vuorinen <ismo@ivuorinen.net>
60 lines
1.3 KiB
YAML
60 lines
1.3 KiB
YAML
---
|
|
name: Reviewdog Linters
|
|
|
|
on: [push]
|
|
|
|
permissions: read-all
|
|
|
|
jobs:
|
|
linters:
|
|
name: Linters
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
contents: read
|
|
packages: read
|
|
statuses: write
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: GitHub Actions
|
|
uses: reviewdog/action-actionlint@v1
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
reporter: github-pr-review
|
|
|
|
- name: detect-secrets
|
|
uses: reviewdog/action-detect-secrets@master
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
reporter: github-pr-review
|
|
|
|
- name: markdownlint
|
|
uses: reviewdog/action-markdownlint@v0
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
reporter: github-pr-review
|
|
|
|
- name: shfmt
|
|
uses: reviewdog/action-shfmt@v1
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
shfmt_flags: |
|
|
--find
|
|
--list
|
|
--write
|
|
--diff
|
|
--language-dialect bash
|
|
--indent 2
|
|
--binary-next-line
|
|
--case-indent
|
|
--space-redirects
|
|
--func-next-line
|
|
|
|
- name: yamllint
|
|
uses: reviewdog/action-yamllint@v1
|
|
with:
|
|
github_token: ${{ secrets.github_token }}
|
|
reporter: github-pr-review
|