microsoft/hve-core

Public

mirrored fromhttps://github.com/microsoft/hve-coreAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
fix/1124-exclude-python-env-dirs-from-skill-validation

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

scripts/tests/Fixtures/Security/secure-download.sh

15lines · modecode

1#!/usr/bin/env bash
2# Copyright (c) Microsoft Corporation.
3# SPDX-License-Identifier: MIT
4#
5# Test fixture: Shell script with secure downloads (checksum verified)
6
7echo "Downloading tool with sha256sum verification..."
8curl -o /tmp/tool.tar.gz https://example.com/tool.tar.gz
9sha256sum -c /tmp/tool.tar.gz.sha256
10
11echo "Downloading tool with shasum verification..."
12wget https://example.com/other-tool.zip -O /tmp/other-tool.zip
13shasum -a 256 /tmp/other-tool.zip
14
15echo "Done"
16