File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 - name : Checkout repository
1616 uses : actions/checkout@v4
1717
18+ - name : Install Destructive Command Guard
19+ shell : bash
20+ run : |
21+ set -euo pipefail
22+ version="v0.4.5"
23+ platform="x86_64-unknown-linux-gnu"
24+ install_dir="$RUNNER_TEMP/dcg"
25+ mkdir -p "$install_dir"
26+ curl --fail --location --silent --show-error \
27+ "https://github.com/Dicklesworthstone/destructive_command_guard/releases/download/${version}/dcg-${platform}.tar.xz" \
28+ --output "$install_dir/dcg.tar.xz"
29+ tar -xJf "$install_dir/dcg.tar.xz" -C "$install_dir"
30+ chmod +x "$install_dir/dcg"
31+ echo "$install_dir" >> "$GITHUB_PATH"
32+
1833 - name : Run Destructive Command Guard
19- uses : Dicklesworthstone/destructive_command_guard/action@v0.4.5
20- with :
21- paths : .
22- fail-on : error
23- format : pretty
34+ shell : bash
35+ run : dcg scan --paths . --fail-on error --format pretty
You can’t perform that action at this time.
0 commit comments