ci: fail fast on missing signing key in dev/beta index regeneration
Matches the same guard just added to bread's dev/beta workflows: a missing BAKERY_MINISIGN_SEC_KEY_PATH secret should fail the job loudly rather than silently publish an unsigned index.
This commit is contained in:
parent
4ac54c610d
commit
86e712d726
4 changed files with 28 additions and 4 deletions
|
|
@ -58,4 +58,10 @@ jobs:
|
||||||
env:
|
env:
|
||||||
MINISIGN_SEC_KEY: ${{ secrets.BAKERY_MINISIGN_SEC_KEY_PATH }}
|
MINISIGN_SEC_KEY: ${{ secrets.BAKERY_MINISIGN_SEC_KEY_PATH }}
|
||||||
TRACK: beta
|
TRACK: beta
|
||||||
run: cd src && bash scripts/gen-index.sh
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
if [ -z "${MINISIGN_SEC_KEY:-}" ]; then
|
||||||
|
echo "::error::BAKERY_MINISIGN_SEC_KEY_PATH secret not set — refusing to regenerate beta index.json unsigned (would leave a stale signature mismatched against fresh content and break bakery for everyone on the beta track)"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
cd src && bash scripts/gen-index.sh
|
||||||
|
|
|
||||||
|
|
@ -53,4 +53,10 @@ jobs:
|
||||||
env:
|
env:
|
||||||
MINISIGN_SEC_KEY: ${{ secrets.BAKERY_MINISIGN_SEC_KEY_PATH }}
|
MINISIGN_SEC_KEY: ${{ secrets.BAKERY_MINISIGN_SEC_KEY_PATH }}
|
||||||
TRACK: beta
|
TRACK: beta
|
||||||
run: cd src && bash scripts/gen-index.sh
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
if [ -z "${MINISIGN_SEC_KEY:-}" ]; then
|
||||||
|
echo "::error::BAKERY_MINISIGN_SEC_KEY_PATH secret not set — refusing to regenerate beta index.json unsigned (would leave a stale signature mismatched against fresh content and break bakery for everyone on the beta track)"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
cd src && bash scripts/gen-index.sh
|
||||||
|
|
|
||||||
|
|
@ -77,4 +77,10 @@ jobs:
|
||||||
env:
|
env:
|
||||||
MINISIGN_SEC_KEY: ${{ secrets.BAKERY_MINISIGN_SEC_KEY_PATH }}
|
MINISIGN_SEC_KEY: ${{ secrets.BAKERY_MINISIGN_SEC_KEY_PATH }}
|
||||||
TRACK: dev
|
TRACK: dev
|
||||||
run: cd src && bash scripts/gen-index.sh
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
if [ -z "${MINISIGN_SEC_KEY:-}" ]; then
|
||||||
|
echo "::error::BAKERY_MINISIGN_SEC_KEY_PATH secret not set — refusing to regenerate dev index.json unsigned (would leave a stale signature mismatched against fresh content and break bakery for everyone on the dev track)"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
cd src && bash scripts/gen-index.sh
|
||||||
|
|
|
||||||
|
|
@ -66,4 +66,10 @@ jobs:
|
||||||
env:
|
env:
|
||||||
MINISIGN_SEC_KEY: ${{ secrets.BAKERY_MINISIGN_SEC_KEY_PATH }}
|
MINISIGN_SEC_KEY: ${{ secrets.BAKERY_MINISIGN_SEC_KEY_PATH }}
|
||||||
TRACK: dev
|
TRACK: dev
|
||||||
run: cd src && bash scripts/gen-index.sh
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
if [ -z "${MINISIGN_SEC_KEY:-}" ]; then
|
||||||
|
echo "::error::BAKERY_MINISIGN_SEC_KEY_PATH secret not set — refusing to regenerate dev index.json unsigned (would leave a stale signature mismatched against fresh content and break bakery for everyone on the dev track)"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
cd src && bash scripts/gen-index.sh
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue