New attempt to fix the CICD
All checks were successful
CICD Start / Sanity and Base Decision (pull_request) Successful in 1m0s

Signed-off-by: copilotcoder <copilotcoder@darkhelm.org>
This commit is contained in:
copilotcoder
2026-05-31 16:26:59 -04:00
parent b64fce6ced
commit b6f4a3eaf6
5 changed files with 25 additions and 10 deletions

View File

@@ -124,7 +124,8 @@ jobs:
steps:
- name: Dispatch tests workflow
env:
DISPATCH_TOKEN: ${{ secrets.PACKAGE_ACCESS_TOKEN }}
ACTIONS_TRIGGER_TOKEN: ${{ secrets.ACTIONS_TRIGGER_TOKEN }}
PACKAGE_ACCESS_TOKEN: ${{ secrets.PACKAGE_ACCESS_TOKEN }}
HEAD_SHA: ${{ needs.setup.outputs.head_sha }}
REPO_FULL: ${{ github.repository }}
HEAD_REF: ${{ github.head_ref }}
@@ -132,6 +133,8 @@ jobs:
run: |
set -e
DISPATCH_TOKEN="${ACTIONS_TRIGGER_TOKEN:-${PACKAGE_ACCESS_TOKEN:-}}"
if [ -z "${DISPATCH_TOKEN}" ]; then
echo "❌ Missing dispatch token. Set ACTIONS_TRIGGER_TOKEN (repo write scope) or ensure PACKAGE_ACCESS_TOKEN has Actions workflow-dispatch permissions."
exit 1
@@ -160,7 +163,7 @@ jobs:
DISPATCH_URL="${API_BASE}/repos/${REPO_OWNER}/${REPO_NAME}/actions/workflows/cicd-tests.yaml/dispatches"
RESPONSE_FILE="/tmp/dispatch-response.txt"
: > "${RESPONSE_FILE}"
HTTP_CODE=$(curl -sS -o "${RESPONSE_FILE}" -w "%{http_code}" -X POST \
HTTP_CODE=$(curl -sS --connect-timeout 5 --max-time 20 -o "${RESPONSE_FILE}" -w "%{http_code}" -X POST \
-H "Authorization: token ${DISPATCH_TOKEN}" \
-H "Content-Type: application/json" \
"${DISPATCH_URL}" \

View File

@@ -158,7 +158,8 @@ jobs:
- name: Dispatch downstream workflow
if: steps.base-decision.outcome == 'success' && steps.base-decision.outputs.head_sha != '' && steps.base-decision.outputs.base_needed != ''
env:
DISPATCH_TOKEN: ${{ secrets.PACKAGE_ACCESS_TOKEN }}
ACTIONS_TRIGGER_TOKEN: ${{ secrets.ACTIONS_TRIGGER_TOKEN }}
PACKAGE_ACCESS_TOKEN: ${{ secrets.PACKAGE_ACCESS_TOKEN }}
BASE_NEEDED: ${{ steps.base-decision.outputs.base_needed }}
HEAD_SHA: ${{ steps.base-decision.outputs.head_sha }}
BASE_HASH: ${{ steps.base-decision.outputs.base_hash }}
@@ -168,6 +169,8 @@ jobs:
run: |
set -e
DISPATCH_TOKEN="${ACTIONS_TRIGGER_TOKEN:-${PACKAGE_ACCESS_TOKEN:-}}"
if [ -z "${DISPATCH_TOKEN}" ]; then
echo "❌ Missing dispatch token. Set ACTIONS_TRIGGER_TOKEN (repo write scope) or ensure PACKAGE_ACCESS_TOKEN has Actions workflow-dispatch permissions."
exit 1
@@ -216,7 +219,7 @@ jobs:
RESPONSE_FILE="/tmp/dispatch-response.txt"
: > "${RESPONSE_FILE}"
HTTP_CODE=$(curl -sS -o "${RESPONSE_FILE}" -w "%{http_code}" -X POST \
HTTP_CODE=$(curl -sS --connect-timeout 5 --max-time 20 -o "${RESPONSE_FILE}" -w "%{http_code}" -X POST \
-H "Authorization: token ${DISPATCH_TOKEN}" \
-H "Content-Type: application/json" \
"${DISPATCH_URL}" \

View File

@@ -24,7 +24,8 @@ jobs:
- name: Dispatch CICD Start workflow
env:
DISPATCH_TOKEN: ${{ secrets.PACKAGE_ACCESS_TOKEN }}
ACTIONS_TRIGGER_TOKEN: ${{ secrets.ACTIONS_TRIGGER_TOKEN }}
PACKAGE_ACCESS_TOKEN: ${{ secrets.PACKAGE_ACCESS_TOKEN }}
REPO_FULL: ${{ github.repository }}
HEAD_REF: ${{ github.head_ref }}
REF_NAME: ${{ github.ref_name }}
@@ -32,6 +33,8 @@ jobs:
run: |
set -e
DISPATCH_TOKEN="${ACTIONS_TRIGGER_TOKEN:-${PACKAGE_ACCESS_TOKEN:-}}"
if [ -z "${DISPATCH_TOKEN}" ]; then
echo "❌ Missing dispatch token. Set ACTIONS_TRIGGER_TOKEN (repo write scope) or ensure PACKAGE_ACCESS_TOKEN has Actions workflow-dispatch permissions."
exit 1
@@ -60,7 +63,7 @@ jobs:
DISPATCH_URL="${API_BASE}/repos/${REPO_OWNER}/${REPO_NAME}/actions/workflows/cicd-start.yaml/dispatches"
RESPONSE_FILE="/tmp/dispatch-response.txt"
: > "${RESPONSE_FILE}"
HTTP_CODE=$(curl -sS -o "${RESPONSE_FILE}" -w "%{http_code}" -X POST \
HTTP_CODE=$(curl -sS --connect-timeout 5 --max-time 20 -o "${RESPONSE_FILE}" -w "%{http_code}" -X POST \
-H "Authorization: token ${DISPATCH_TOKEN}" \
-H "Content-Type: application/json" \
"${DISPATCH_URL}" \

View File

@@ -359,7 +359,8 @@ jobs:
steps:
- name: Dispatch main build workflow
env:
DISPATCH_TOKEN: ${{ secrets.PACKAGE_ACCESS_TOKEN }}
ACTIONS_TRIGGER_TOKEN: ${{ secrets.ACTIONS_TRIGGER_TOKEN }}
PACKAGE_ACCESS_TOKEN: ${{ secrets.PACKAGE_ACCESS_TOKEN }}
HEAD_SHA: ${{ needs.publish-base.outputs.head_sha }}
BASE_HASH: ${{ needs.publish-base.outputs.base_hash }}
REPO_FULL: ${{ github.repository }}
@@ -368,6 +369,8 @@ jobs:
run: |
set -e
DISPATCH_TOKEN="${ACTIONS_TRIGGER_TOKEN:-${PACKAGE_ACCESS_TOKEN:-}}"
if [ -z "${DISPATCH_TOKEN}" ]; then
echo "❌ Missing dispatch token. Set ACTIONS_TRIGGER_TOKEN (repo write scope) or ensure PACKAGE_ACCESS_TOKEN has Actions workflow-dispatch permissions."
exit 1
@@ -398,7 +401,7 @@ jobs:
DISPATCH_URL="${API_BASE}/repos/${REPO_OWNER}/${REPO_NAME}/actions/workflows/docker-build-main.yaml/dispatches"
RESPONSE_FILE="/tmp/dispatch-response.txt"
: > "${RESPONSE_FILE}"
HTTP_CODE=$(curl -sS -o "${RESPONSE_FILE}" -w "%{http_code}" -X POST \
HTTP_CODE=$(curl -sS --connect-timeout 5 --max-time 20 -o "${RESPONSE_FILE}" -w "%{http_code}" -X POST \
-H "Authorization: token ${DISPATCH_TOKEN}" \
-H "Content-Type: application/json" \
"${DISPATCH_URL}" \

View File

@@ -180,7 +180,8 @@ jobs:
steps:
- name: Dispatch checks workflow
env:
DISPATCH_TOKEN: ${{ secrets.PACKAGE_ACCESS_TOKEN }}
ACTIONS_TRIGGER_TOKEN: ${{ secrets.ACTIONS_TRIGGER_TOKEN }}
PACKAGE_ACCESS_TOKEN: ${{ secrets.PACKAGE_ACCESS_TOKEN }}
HEAD_SHA: ${{ needs.build.outputs.head_sha }}
REPO_FULL: ${{ github.repository }}
HEAD_REF: ${{ github.head_ref }}
@@ -188,6 +189,8 @@ jobs:
run: |
set -e
DISPATCH_TOKEN="${ACTIONS_TRIGGER_TOKEN:-${PACKAGE_ACCESS_TOKEN:-}}"
if [ -z "${DISPATCH_TOKEN}" ]; then
echo "❌ Missing dispatch token. Set ACTIONS_TRIGGER_TOKEN (repo write scope) or ensure PACKAGE_ACCESS_TOKEN has Actions workflow-dispatch permissions."
exit 1
@@ -216,7 +219,7 @@ jobs:
DISPATCH_URL="${API_BASE}/repos/${REPO_OWNER}/${REPO_NAME}/actions/workflows/cicd-checks.yaml/dispatches"
RESPONSE_FILE="/tmp/dispatch-response.txt"
: > "${RESPONSE_FILE}"
HTTP_CODE=$(curl -sS -o "${RESPONSE_FILE}" -w "%{http_code}" -X POST \
HTTP_CODE=$(curl -sS --connect-timeout 5 --max-time 20 -o "${RESPONSE_FILE}" -w "%{http_code}" -X POST \
-H "Authorization: token ${DISPATCH_TOKEN}" \
-H "Content-Type: application/json" \
"${DISPATCH_URL}" \