Skip to content

Commit 369b72c

Browse files
SecAI-Hubclaude
andcommitted
Fix ISO sign step: find ISO by glob instead of action output
The build-container-installer action's iso_path output was '.' (current directory) instead of the file path. Use find to locate the built ISO file by name pattern. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 95f85fb commit 369b72c

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,14 +183,21 @@ jobs:
183183
184184
- name: Sign ISO
185185
run: |
186-
ISO_PATH="${{ steps.isogen.outputs.iso_path }}"
187186
mkdir -p dist
188-
mv "$ISO_PATH" "dist/"
189-
ISO_FILE="dist/secai-os-${{ github.ref_name }}-x86_64.iso"
187+
# Find the ISO — the action may output it in various locations
188+
ISO_FILE=$(find . -maxdepth 2 -name "secai-os-*.iso" -type f | head -1)
189+
if [ -z "$ISO_FILE" ]; then
190+
echo "ERROR: ISO file not found after build"
191+
find . -maxdepth 3 -name "*.iso" -type f
192+
exit 1
193+
fi
194+
echo "Found ISO: $ISO_FILE"
195+
mv "$ISO_FILE" "dist/"
196+
ISO_BASENAME=$(basename "$ISO_FILE")
190197
cosign sign-blob --yes \
191198
--key env://COSIGN_PRIVATE_KEY \
192-
--output-signature "${ISO_FILE}.sig" \
193-
"$ISO_FILE"
199+
--output-signature "dist/${ISO_BASENAME}.sig" \
200+
"dist/${ISO_BASENAME}"
194201
env:
195202
COSIGN_PRIVATE_KEY: ${{ secrets.SIGNING_SECRET }}
196203

0 commit comments

Comments
 (0)