File tree Expand file tree Collapse file tree 1 file changed +5
-24
lines changed
Expand file tree Collapse file tree 1 file changed +5
-24
lines changed Original file line number Diff line number Diff line change @@ -16,29 +16,10 @@ jobs:
1616 - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
1717 with :
1818 fetch-depth : 0
19- - uses : actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
19+ - uses : cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # v30
2020 with :
21- python-version : ' 3.12 '
22- - uses : dtolnay/rust-toolchain@master
21+ github_access_token : ${{ secrets.GITHUB_TOKEN }}
22+ - uses : stackabletech/actions/run-pre-commit@9bd13255f286e4b7a654617268abe1b2f37c3e0a # v0.3.0
2323 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"
42- - uses : pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
43- with :
44- extra_args : " --from-ref ${{ github.event.pull_request.base.sha }} --to-ref ${{ github.event.pull_request.head.sha }}"
24+ rust : ${{ env.RUST_TOOLCHAIN_VERSION }}
25+ hadolint : ${{ env.HADOLINT_VERSION }}
You can’t perform that action at this time.
0 commit comments