-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 1.1 KB
/
pre-commit.yml
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
name: pre-commit
on:
pull_request:
push:
branches: [main]
jobs:
pre-commit:
permissions:
contents: write # for actions/checkout to fetch code
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
actions: write # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: yq - portable yaml processor
uses: mikefarah/[email protected]
- uses: supplypike/setup-bin@v3
with:
uri: 'https://github.com/hadolint/hadolint/releases/download/v2.12.0/hadolint-Linux-x86_64'
name: 'hadolint'
version: v2.12.0
- uses: pre-commit/[email protected]
with:
extra_args: --all-files
continue-on-error: true
- uses: stefanzweifel/git-auto-commit-action@v4
- uses: pre-commit/[email protected]
with:
extra_args: --all-files