File tree Expand file tree Collapse file tree 2 files changed +0
-30
lines changed Expand file tree Collapse file tree 2 files changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,6 @@ name: pre-commit
44on :
55 pull_request :
66
7- env :
8- CARGO_TERM_COLOR : always
9- RUST_TOOLCHAIN_VERSION : " 1.80.1"
10- HADOLINT_VERSION : " v1.17.6"
11-
127jobs :
138 pre-commit :
149 runs-on : ubuntu-latest
1914 - uses : actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
2015 with :
2116 python-version : ' 3.12'
22- - uses : dtolnay/rust-toolchain@master
23- with :
24- toolchain : ${{ env.RUST_TOOLCHAIN_VERSION }}
25- components : rustfmt,clippy
26- - name : Setup Hadolint
27- shell : bash
28- run : |
29- set -euo pipefail
30-
31- LOCATION_DIR="$HOME/.local/bin"
32- LOCATION_BIN="$LOCATION_DIR/hadolint"
33-
34- SYSTEM=$(uname -s)
35- ARCH=$(uname -m)
36-
37- mkdir -p "$LOCATION_DIR"
38- curl -sL -o "${LOCATION_BIN}" "https://github.com/hadolint/hadolint/releases/download/${{ env.HADOLINT_VERSION }}/hadolint-$SYSTEM-$ARCH"
39- chmod 700 "${LOCATION_BIN}"
40-
41- echo "$LOCATION_DIR" >> "$GITHUB_PATH"
4217 - uses : pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
4318 with :
4419 extra_args : " --from-ref ${{ github.event.pull_request.base.sha }} --to-ref ${{ github.event.pull_request.head.sha }}"
Original file line number Diff line number Diff line change 4949 rev : 62dc61a45fc95efe8c800af7a557ab0b9165d63b # 1.7.1
5050 hooks :
5151 - id : actionlint
52-
53- - repo : https://github.com/hadolint/hadolint
54- rev : b3555ba9c2bfd9401e79f2f0da68dd1ae38e10c7 # 2.12.0
55- hooks :
56- - id : hadolint
You can’t perform that action at this time.
0 commit comments