Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/reusable-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ jobs:
REGISTRY_TOKEN: ${{ secrets.registry-token || github.token }}
ANTHROPIC_API_KEY: ${{ secrets.anthropic-api-key }}
run: |
bash .github/scripts/preflight-secrets.sh \
bash .openci/.github/scripts/preflight-secrets.sh \
--required "REGISTRY_TOKEN" \
--optional "ANTHROPIC_API_KEY"

Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/reusable-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,18 @@ jobs:
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v4.2.2
with:
persist-credentials: false
- name: Resolve OpenCI ref and checkout
uses: YiAgent/OpenCI/actions/_common/resolve-openci@9bd9cf085ba9d3a199b701d42ea054e1625a65ce
with:
openci-ref: ${{ inputs.openci-ref }}
- name: Probe secrets
env:
ANTHROPIC_API_KEY: ${{ secrets.anthropic-api-key }}
CODECOV_TOKEN: ${{ secrets.codecov-token }}
SONAR_TOKEN: ${{ secrets.sonar-token }}
SNYK_TOKEN: ${{ secrets.snyk-token }}
run: |
bash .github/scripts/preflight-secrets.sh \
bash .openci/.github/scripts/preflight-secrets.sh \
--required "" \
--optional "ANTHROPIC_API_KEY,CODECOV_TOKEN,SONAR_TOKEN,SNYK_TOKEN"

Expand Down Expand Up @@ -412,6 +416,10 @@ jobs:
with:
persist-credentials: false
fetch-depth: 0 # required so git ls-tree can resolve the self-ref SHA
- name: Resolve OpenCI ref and checkout
uses: YiAgent/OpenCI/actions/_common/resolve-openci@9bd9cf085ba9d3a199b701d42ea054e1625a65ce
with:
openci-ref: ${{ inputs.openci-ref }}
- name: Install yq
run: |
if ! command -v yq >/dev/null 2>&1; then
Expand All @@ -420,7 +428,7 @@ jobs:
sudo chmod +x /usr/local/bin/yq
fi
- name: Run verify-sha-consistency.sh
run: bash .github/scripts/verify-sha-consistency.sh
run: bash .openci/.github/scripts/verify-sha-consistency.sh

lint:
permissions: {}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/reusable-prd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,11 @@ jobs:
SLACK_WEBHOOK_URL: ${{ secrets.slack-webhook-url }}
run: |
if [ "$DEPLOY_TYPE" = "k8s" ]; then
bash .github/scripts/preflight-secrets.sh \
bash .openci/.github/scripts/preflight-secrets.sh \
--required "KUBECONFIG_PRD" \
--optional "SLACK_WEBHOOK_URL"
else
bash .github/scripts/preflight-secrets.sh \
bash .openci/.github/scripts/preflight-secrets.sh \
--required "SSH_KEY_PRD" \
--optional "SLACK_WEBHOOK_URL"
fi
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/reusable-stg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,11 @@ jobs:
SLACK_WEBHOOK_URL: ${{ secrets.slack-webhook-url }}
run: |
if [ "$DEPLOY_TYPE" = "k8s" ]; then
bash .github/scripts/preflight-secrets.sh \
bash .openci/.github/scripts/preflight-secrets.sh \
--required "KUBECONFIG_STG" \
--optional "SLACK_WEBHOOK_URL"
else
bash .github/scripts/preflight-secrets.sh \
bash .openci/.github/scripts/preflight-secrets.sh \
--required "SSH_KEY_STG" \
--optional "SLACK_WEBHOOK_URL"
fi
Expand Down
Loading