Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
a357996
Initial plan
Copilot Jul 6, 2026
3eca684
Initial plan checkpoint
Copilot Jul 6, 2026
98a1883
fix(security): replace curl|sh installer patterns with download+verif…
Copilot Jul 6, 2026
d265668
Merge branch 'main' into copilot/static-analysis-report-2026-07-06
pelikhan Jul 6, 2026
0821ca9
fix: use /tmp/gh-aw/ folder for installer temp files
Copilot Jul 6, 2026
5c2c9d0
Merge branch 'main' into copilot/static-analysis-report-2026-07-06
pelikhan Jul 6, 2026
efc3075
fix(security): pin installer refs to resolved SHA in dev-mode templat…
Copilot Jul 6, 2026
157710a
Merge remote-tracking branch 'origin/main' into copilot/static-analys…
Copilot Jul 6, 2026
74b0f64
fix: sh→bash for Ollama, add SHA update docs, trufflehog arch note + …
Copilot Jul 6, 2026
25c13f7
Merge branch 'main' into copilot/static-analysis-report-2026-07-06
github-actions[bot] Jul 6, 2026
e170120
fix(security): pin copilotSetupStepsYAML constant to immutable SHA; a…
Copilot Jul 6, 2026
a27d32d
Merge remote-tracking branch 'origin/main' into copilot/static-analys…
Copilot Jul 6, 2026
b433a83
fix(security): add SHA256 integrity check to dev-mode install-gh-aw.s…
Copilot Jul 6, 2026
d11cf89
fix(security): add input validation guards for SHA values in install …
Copilot Jul 6, 2026
ee63f05
refactor: extract installScriptTempPath constant, simplify sha256 guards
Copilot Jul 6, 2026
2f879c8
refactor: use installScriptTempPath constant in fmt.Sprintf and add c…
Copilot Jul 6, 2026
130bc2c
refactor: extract sha256CheckLine helper to deduplicate sha256sum com…
Copilot Jul 7, 2026
89040e3
docs: document sha256CheckLine trailing newline and parameter safety …
Copilot Jul 7, 2026
996ea42
fix(security): add runtime input validation to sha256CheckLine
Copilot Jul 7, 2026
9b9b24e
fix: add wildcards to path validation in sha256CheckLine; remove redu…
Copilot Jul 7, 2026
83cc016
Merge branch 'main' into copilot/static-analysis-report-2026-07-06
github-actions[bot] Jul 7, 2026
61e0109
refactor(security): extract static SHA/hash constants; add update-ins…
Copilot Jul 7, 2026
b8c2764
feat(makefile): add sync-install-script-hashes target and wire into u…
Copilot Jul 7, 2026
ecba77b
Merge remote-tracking branch 'origin/main' into copilot/static-analys…
Copilot Jul 7, 2026
1512d2b
merge: update from main and recompile lock files (firewall bump to 0.…
Copilot Jul 7, 2026
662e451
Merge branch 'main' into copilot/static-analysis-report-2026-07-06
github-actions[bot] Jul 7, 2026
ae04e75
Merge remote-tracking branch 'origin/main' into copilot/static-analys…
Copilot Jul 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/copilot-setup-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
permissions:
contents: read
steps:
- name: Install gh-aw extension
run: curl -fsSL https://raw.githubusercontent.com/github/gh-aw/refs/heads/main/install-gh-aw.sh | bash
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Install gh-aw extension
run: bash install-gh-aw.sh
- name: Set up Node.js
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f
with:
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/daily-byok-ollama-test.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion .github/workflows/daily-byok-ollama-test.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,17 @@ strict: true
timeout-minutes: 20
steps:
- name: Install Ollama
env:
OLLAMA_VERSION: "0.31.1"
# SHA256 of install.sh from https://github.com/ollama/ollama/releases/download/v${OLLAMA_VERSION}/install.sh
# To update: curl -fsSL https://github.com/ollama/ollama/releases/download/vNEW_VERSION/install.sh | sha256sum
OLLAMA_INSTALL_SHA256: "25f64b810b947145095956533e1bdf56eacea2673c55a7e586be4515fc882c9f"
Comment thread
pelikhan marked this conversation as resolved.
run: |
curl -fsSL https://ollama.com/install.sh | sh
echo "Downloading Ollama v${OLLAMA_VERSION} install script..."
mkdir -p /tmp/gh-aw
curl -fsSL "https://github.com/ollama/ollama/releases/download/v${OLLAMA_VERSION}/install.sh" -o /tmp/gh-aw/ollama-install.sh
echo "${OLLAMA_INSTALL_SHA256} /tmp/gh-aw/ollama-install.sh" | sha256sum -c -
bash /tmp/gh-aw/ollama-install.sh
- name: Generate Ollama API key
run: |
OLLAMA_API_KEY="$(openssl rand -hex 16)"
Expand Down
17 changes: 15 additions & 2 deletions .github/workflows/shared/trufflehog.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,22 @@ jobs:
id: install-trufflehog
env:
TRUFFLEHOG_VERSION: "3.88.27"
# SHA256 of the linux_amd64 .tar.gz from the pinned release. Only GitHub-hosted ubuntu-latest runners
# (always amd64) are supported; self-hosted ARM runners will need a separate per-arch hash.
# To update: curl -fsSL https://github.com/trufflesecurity/trufflehog/releases/download/vNEW/trufflehog_NEW_linux_amd64.tar.gz | sha256sum
TRUFFLEHOG_SHA256: "e3b2647b7a7bc1591f316da91fd33fc7397f8e3c21e2feed791c171f0c406bc7"
run: |
echo "Installing TruffleHog v${TRUFFLEHOG_VERSION}..."
curl -sSfL https://raw.githubusercontent.com/trufflesecurity/trufflehog/main/scripts/install.sh | sh -s -- -b /usr/local/bin "v${TRUFFLEHOG_VERSION}"
ARCH=$(uname -m)
if [ "$ARCH" != "x86_64" ]; then
echo "::error::TruffleHog installation only supports x86_64 (linux_amd64); detected $ARCH. Self-hosted ARM runners must install TruffleHog separately."
exit 1
fi
echo "Downloading TruffleHog v${TRUFFLEHOG_VERSION}..."
mkdir -p /tmp/gh-aw
curl -fsSL "https://github.com/trufflesecurity/trufflehog/releases/download/v${TRUFFLEHOG_VERSION}/trufflehog_${TRUFFLEHOG_VERSION}_linux_amd64.tar.gz" -o /tmp/gh-aw/trufflehog.tar.gz
Comment thread
pelikhan marked this conversation as resolved.
# SHA256 covers the .tar.gz archive; the binary is extracted from the verified archive
echo "${TRUFFLEHOG_SHA256} /tmp/gh-aw/trufflehog.tar.gz" | sha256sum -c -
sudo tar -xzf /tmp/gh-aw/trufflehog.tar.gz --no-same-owner -C /usr/local/bin trufflehog
trufflehog --version

- name: Scan agent output for secrets
Expand Down
16 changes: 13 additions & 3 deletions .github/workflows/smoke-codex.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1013,6 +1013,13 @@ sync-action-scripts:
@chmod +x actions/setup-cli/install.sh
@echo "✓ Action scripts synced successfully"

# Sync install-gh-aw.sh SHA/hash constants in pkg/cli/copilot_setup.go
.PHONY: sync-install-script-hashes
sync-install-script-hashes:
@echo "Updating install-gh-aw.sh SHA and SHA256 constants..."
@bash scripts/update-install-script-hashes.sh
@echo "✓ Install script hashes synced successfully"

# Recompile all workflow files
.PHONY: recompile
recompile: build
Expand Down Expand Up @@ -1052,6 +1059,7 @@ dependabot: build
update: build
./$(BINARY_NAME) update
$(MAKE) sync-action-pins
$(MAKE) sync-install-script-hashes
$(MAKE) build

# Run development server
Expand Down Expand Up @@ -1190,6 +1198,7 @@ help:
@echo " install - Install binary locally"
@echo " sync-action-pins - Sync actions-lock.json from .github/aw to pkg/actionpins/data and pkg/workflow/data (runs automatically during build)"
@echo " sync-action-scripts - Sync install-gh-aw.sh to actions/setup-cli/install.sh (runs automatically during build)"
@echo " sync-install-script-hashes - Update install-gh-aw.sh SHA and SHA256 constants in pkg/cli/copilot_setup.go (runs automatically during update)"
@echo " update - Update GitHub Actions and workflows, sync action pins, and rebuild binary"
@echo " fix - Apply automatic codemod-style fixes to workflow files (depends on build)"
@echo " recompile - Recompile all workflow files (runs init, depends on build)"
Expand Down
Loading