Skip to content

Commit b471edb

Browse files
committed
update copilot
1 parent 6af21f1 commit b471edb

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

src/base/.devcontainer/scripts/install_trivy.sh

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,17 @@ CERT_IDENTITY="https://github.com/aquasecurity/trivy/.github/workflows/reusable-
1414

1515
usage() {
1616
cat <<'EOF'
17-
Usage: install_trivy.sh [output_dir]
17+
Usage: install_trivy.sh
1818
19-
Downloads Trivy, its sigstore bundle, and checksum into output_dir (default: current directory),
20-
then verifies the checksum and the sigstore bundle, following
21-
https://github.com/aquasecurity/trivy/blob/main/docs/getting-started/signature-verification.md.
19+
Downloads the Trivy archive and its sigstore bundle to a temporary directory,
20+
verifies the sigstore bundle following
21+
https://github.com/aquasecurity/trivy/blob/main/docs/getting-started/signature-verification.md,
22+
and installs the trivy binary into INSTALL_DIR (default: /usr/local/bin).
23+
24+
Environment variables:
25+
INSTALL_DIR Directory to install the trivy binary into (default: /usr/local/bin)
26+
VERSION Trivy version tag to install (default: v0.69.3)
27+
ARCH Architecture suffix used in the download (default: 64bit)
2228
EOF
2329
}
2430

@@ -27,7 +33,7 @@ if [[ "${1:-}" == "-h" || "${1:-}" == "--help" ]]; then
2733
exit 0
2834
fi
2935

30-
for cmd in curl cosign sha256sum; do
36+
for cmd in curl cosign; do
3137
if ! command -v "$cmd" >/dev/null 2>&1; then
3238
echo "Error: $cmd is required but not found in PATH" >&2
3339
exit 1

src/projects/regression_tests/.devcontainer/scripts/root_install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -euo pipefail
44

55
# install chrome
66
mkdir -p /etc/apt/keyrings
7-
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo tee /etc/apt/keyrings/google.asc >/dev/null
7+
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | tee /etc/apt/keyrings/google.asc >/dev/null
88
sh -c 'echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/google.asc] https://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list'
99
apt-get update
1010
apt-get install -y google-chrome-stable

0 commit comments

Comments
 (0)