Skip to content

Commit d6dc7bc

Browse files
committed
ci(agda-proofs): restrict the Agda download and its redirects to HTTPS
SonarCloud githubactions:S6506 on PR #861: curl -L could follow a redirect to a non-HTTPS URL. The SHA-256 check already guards the file's integrity; this also closes the transport path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J4QvDfHidNin3g7itrbLfk
1 parent 2ccc37c commit d6dc7bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎.github/workflows/coq-proof-gate.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ jobs:
175175
run: |
176176
set -euo pipefail
177177
d="$RUNNER_TEMP/agda-dl"; mkdir -p "$d"
178-
curl -fsSL --retry 3 -o "$d/agda.tar.xz" "$AGDA_TARBALL_URL"
178+
curl -fsSL --proto =https --proto-redir =https --retry 3 -o "$d/agda.tar.xz" "$AGDA_TARBALL_URL"
179179
echo "${AGDA_TARBALL_SHA256} $d/agda.tar.xz" | sha256sum -c -
180180
tar -xJf "$d/agda.tar.xz" -C "$RUNNER_TEMP"
181181
root="$RUNNER_TEMP/Agda-v${AGDA_CI_VERSION}"

0 commit comments

Comments
 (0)