-
Notifications
You must be signed in to change notification settings - Fork 2k
75 lines (68 loc) · 2.13 KB
/
Copy pathpr-lint.yaml
File metadata and controls
75 lines (68 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Lint PRs
on:
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
hadolint-pr:
runs-on: ubuntu-latest
name: PR - Hadolint
permissions:
contents: read
pull-requests: write
checks: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Run hadolint
uses: reviewdog/action-hadolint@1b2cfa6ba72072ad35158d7ff3aa49bbdc03506d # v1.51.0
with:
github_token: ${{ secrets.github_token }}
fail_level: "warning"
reporter: github-pr-review # Better annotation in PRs
exclude: |
packaging/testing/smoke/packages/Dockerfile.*
shellcheck-pr:
runs-on: ubuntu-latest
name: PR - Shellcheck
permissions:
contents: read
pull-requests: write
checks: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Run shellcheck
uses: reviewdog/action-shellcheck@4c07458293ac342d477251099501a718ae5ef86e # v1.32.0
with:
github_token: ${{ secrets.github_token }}
fail_level: "warning"
reporter: github-pr-review # Better annotation in PRs
exclude: |
*/.git/*
./cmake/sanitizers-cmake/**
./lib/**
./plugins/**
./tests/**
actionlint-pr:
runs-on: ubuntu-latest
name: PR - Actionlint
permissions:
contents: read
pull-requests: write
checks: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Run actionlint
uses: reviewdog/action-actionlint@50842263c20a7c46bd0065b9e624d3c569db061e # v1.73.0
with:
# Disable shellcheck as done elsewhere and speeds up process
actionlint_flags: -shellcheck=
fail_level: "warning"
reporter: github-pr-review # Better annotation in PRs
github_token: ${{ secrets.github_token }}