review.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. on:
  2. pull_request:
  3. name: "Review"
  4. permissions:
  5. contents: read
  6. pull-requests: write
  7. checks: write
  8. jobs:
  9. review:
  10. name: review
  11. runs-on: ubuntu-latest
  12. steps:
  13. -
  14. name: Checkout
  15. uses: actions/checkout@v5
  16. -
  17. name: Spelling
  18. uses: reviewdog/action-misspell@v1
  19. with:
  20. locale: "US"
  21. level: warning
  22. pattern: |
  23. *.md
  24. *.sh
  25. reporter: github-pr-review
  26. github_token: ${{ secrets.GITHUB_TOKEN }}
  27. -
  28. name: Hadolint
  29. uses: reviewdog/action-hadolint@v1
  30. with:
  31. level: warning
  32. reporter: github-pr-review
  33. hadolint_ignore: DL3006 DL3008
  34. github_token: ${{ secrets.GITHUB_TOKEN }}
  35. -
  36. name: YamlLint
  37. uses: reviewdog/action-yamllint@v1
  38. with:
  39. level: warning
  40. reporter: github-pr-review
  41. github_token: ${{ secrets.GITHUB_TOKEN }}
  42. -
  43. name: ActionLint
  44. uses: reviewdog/action-actionlint@v1
  45. with:
  46. level: warning
  47. reporter: github-pr-review
  48. github_token: ${{ secrets.GITHUB_TOKEN }}
  49. -
  50. name: Shellformat
  51. uses: reviewdog/action-shfmt@v1
  52. with:
  53. level: warning
  54. shfmt_flags: "-i 2 -ci -bn"
  55. github_token: ${{ secrets.GITHUB_TOKEN }}
  56. -
  57. name: Shellcheck
  58. uses: reviewdog/action-shellcheck@v1
  59. with:
  60. level: warning
  61. reporter: github-pr-review
  62. shellcheck_flags: -x -e SC1091 -e SC2001 -e SC2002 -e SC2034 -e SC2064 -e SC2153 -e SC2317 -e SC2028
  63. github_token: ${{ secrets.GITHUB_TOKEN }}