Skip to content

Commit c26fb74

Browse files
EMaherCopilot
andcommitted
feat: add monthly schedule to release-tests and document repo-level secrets
Add cron schedule (1st of every month at 9:00 UTC) to release-tests.yml with fallback defaults for inputs. Document repo-level secret requirement in SKILL.md since the orchestrator reads secrets from repo scope. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent d6f24e0 commit c26fb74

2 files changed

Lines changed: 32 additions & 6 deletions

File tree

.github/skills/integration-test-prerequisites/SKILL.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,30 @@ gh secret set APIM_PUBLISHER_EMAIL \
146146
--body "${APIM_PUBLISHER_EMAIL}"
147147
```
148148

149+
### 6) Set Repo-Level Secrets (for release-tests orchestrator)
150+
151+
The `release-tests.yml` orchestrator passes secrets to called workflows via explicit `secrets:` mapping. Since the orchestrator itself does not declare an `environment:`, it reads from **repo-level** secrets. Set the same values at the repo level:
152+
153+
```bash
154+
gh secret set AZURE_CLIENT_ID \
155+
--repo "${GITHUB_OWNER}/${GITHUB_REPO}" \
156+
--body "${IDENTITY_CLIENT_ID}"
157+
158+
gh secret set AZURE_TENANT_ID \
159+
--repo "${GITHUB_OWNER}/${GITHUB_REPO}" \
160+
--body "${TENANT_ID}"
161+
162+
gh secret set AZURE_SUBSCRIPTION_ID \
163+
--repo "${GITHUB_OWNER}/${GITHUB_REPO}" \
164+
--body "${SUBSCRIPTION_ID}"
165+
166+
gh secret set APIM_PUBLISHER_EMAIL \
167+
--repo "${GITHUB_OWNER}/${GITHUB_REPO}" \
168+
--body "${APIM_PUBLISHER_EMAIL}"
169+
```
170+
171+
> **Note:** If you only have environment-level secrets without matching repo-level secrets, the `release-tests.yml` workflow will fail because `${{ secrets.* }}` in the orchestrator resolves from repo scope. The called workflows still use the `integration-test` environment for OIDC token issuance.
172+
149173
## Verification
150174

151175
```bash

.github/workflows/release-tests.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
name: "Release Tests"
1212

1313
on:
14+
schedule:
15+
- cron: '0 9 1 * *' # 1st of every month at 9:00 UTC
1416
workflow_dispatch:
1517
inputs:
1618
sku:
@@ -48,9 +50,9 @@ jobs:
4850
needs: ci
4951
uses: ./.github/workflows/integration-test.yml
5052
with:
51-
sku: ${{ inputs.sku }}
52-
location: ${{ inputs.location }}
53-
log_level: ${{ inputs.log_level }}
53+
sku: ${{ inputs.sku || 'StandardV2' }}
54+
location: ${{ inputs.location || 'centralus' }}
55+
log_level: ${{ inputs.log_level || 'Verbose' }}
5456
secrets:
5557
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
5658
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
@@ -62,9 +64,9 @@ jobs:
6264
needs: all-types-integration
6365
uses: ./.github/workflows/integration-redact-secrets.yml
6466
with:
65-
sku: ${{ inputs.sku }}
66-
location: ${{ inputs.location }}
67-
log_level: ${{ inputs.log_level }}
67+
sku: ${{ inputs.sku || 'StandardV2' }}
68+
location: ${{ inputs.location || 'centralus' }}
69+
log_level: ${{ inputs.log_level || 'Verbose' }}
6870
secrets:
6971
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
7072
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}

0 commit comments

Comments
 (0)