Repository navigation
Various fixes to unblock presubmits & COPR nightlies #229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
430b833
9279be3
30c40be
ee8e0e5
f335d4f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -200,9 +200,19 @@ check_podman_version | |
| # For remote images with the 'latest' tag, update the tag to the latest released version | ||
| if [[ "${IMAGE}" != localhost/* ]] && [ "${TAG}" == "latest" ]; then | ||
| check_prerequisites curl jq | ||
| TAG="$(curl -fsSL --max-time 60 "https://github.com/proxy/api.github.com/repos/${OWNER}/${REPO}/releases/latest" | jq -r .tag_name)" | ||
| curl_args=(-fsSL --max-time 60) | ||
| # If the GITHUB_TOKEN is available use it to authN and avoid anonymous request limits | ||
| [ -n "${GITHUB_TOKEN:-}" ] && curl_args+=(-H "Authorization: token ${GITHUB_TOKEN}") | ||
| response="" | ||
| if ! response="$(curl "${curl_args[@]}" "https://github.com/proxy/api.github.com/repos/${OWNER}/${REPO}/releases/latest")"; then | ||
|
Comment on lines
+204
to
+207
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔒 Security & Privacy | 🟠 Major | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
echo "== locate files =="
git ls-files | rg '(^|/)(quickstart\.sh|action\.ya?ml|.*check.*)$' || true
echo
echo "== quickstart relevant lines =="
if [ -f src/quickstart.sh ]; then
nl -ba src/quickstart.sh | sed -n '180,225p'
fi
echo
echo "== quick-start action files =="
fd -a 'action\.ya?ml' .github actions src 2>/dev/null | sed 's#^\./##' | while read -r f; do
if rg -n 'quickstart|GITHUB_TOKEN|xtrace|set -x|bash -x|pipefail' "$f" >/dev/null 2>&1; then
echo "--- $f"
nl -ba "$f" | sed -n '1,220p'
fi
done
echo
echo "== search for quickstart invocation and env export =="
rg -n 'quickstart|GITHUB_TOKEN|set -x|bash -x|BUNDLER|GITHUB_TOKEN\|' .github src -S || true
echo
echo "== ShellCheck availability and lint (read-only) =="
if command -v shellcheck >/dev/null 2>&1; then
shellcheck --version | head -5
shellcheck src/quickstart.sh || true
else
echo "shellcheck not available"
fiRepository: microshift-io/microshift Length of output: 851 🏁 Script executed: #!/bin/bash
set -euo pipefail
echo "== quickstart relevant lines =="
awk 'NR>=180 && NR<=225 {printf "%7d %s\n", NR, $0}' src/quickstart.sh
echo
echo "== quick-start action file =="
awk 'NR>=1 && NR<=220 {printf "%7d %s\n", NR, $0}' .github/actions/quick-start-clean/action.yaml
echo
echo "== all action entries for quickstart/quick-start-clean/GITHUB_TOKEN/bash -x/set -x =="
awk '
/quick-start-clean|quickstart|GITHUB_TOKEN|xtrace|set -x|bash -x|pipefail|RUN|env:/ {printf "%s:%s\n", FILENAME, $0}
' .github/actions src/quickstart.sh docs/quickstart.sh 2>/dev/null || true
echo
echo "== search quickstart call graph with grep =="
grep -RIn 'quickstart|quick-start-clean|GITHUB_TOKEN|set -x|bash -x|pipefail' .github src docs 2>/dev/null || trueRepository: microshift-io/microshift Length of output: 5941 Keep
🤖 Prompt for AI Agents |
||
| echo "ERROR: Failed to query GitHub API for the latest release" | ||
| echo "${response}" | ||
| exit 1 | ||
| fi | ||
| TAG="$(echo "${response}" | jq -r .tag_name)" | ||
| if [ -z "${TAG}" ] || [ "${TAG}" == "null" ] ; then | ||
| echo "ERROR: Could not determine the latest release tag from GitHub" | ||
| echo "${response}" | ||
| exit 1 | ||
| fi | ||
| fi | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.