From e58b854d93749c5f8225ea2356322ba3522191ab Mon Sep 17 00:00:00 2001 From: madhur310 Date: Mon, 23 Nov 2026 16:08:49 -0800 Subject: [PATCH] fix: declare explicit secrets contract for ctcOpen/ctcClose Callers currently must use `secrets: inherit` because these reusable workflows don't declare a `secrets:` block under `on.workflow_call` -- GitHub Actions rejects an explicit `secrets: { NAME: ... }` map unless the callee declares matching names. Declaring the three CTC secrets here lets callers pass only what's needed instead of their entire secret set, satisfying least-privilege SAST checks like base.yaml.github-actions.security.secrets-inherit. Co-Authored-By: Claude Sonnet 5 --- .github/workflows/ctcClose.yml | 7 +++++++ .github/workflows/ctcOpen.yml | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/.github/workflows/ctcClose.yml b/.github/workflows/ctcClose.yml index 9d5085d..78d8b33 100644 --- a/.github/workflows/ctcClose.yml +++ b/.github/workflows/ctcClose.yml @@ -15,6 +15,13 @@ on: type: string default: lts/* required: false + secrets: + SF_CHANGE_CASE_SFDX_AUTH_URL: + required: true + SF_CHANGE_CASE_TEMPLATE_ID: + required: true + SF_CHANGE_CASE_CONFIGURATION_ITEM: + required: true jobs: ctcClose: diff --git a/.github/workflows/ctcOpen.yml b/.github/workflows/ctcOpen.yml index a68561c..709634d 100644 --- a/.github/workflows/ctcOpen.yml +++ b/.github/workflows/ctcOpen.yml @@ -9,6 +9,13 @@ on: type: string default: lts/* required: false + secrets: + SF_CHANGE_CASE_SFDX_AUTH_URL: + required: true + SF_CHANGE_CASE_TEMPLATE_ID: + required: true + SF_CHANGE_CASE_CONFIGURATION_ITEM: + required: true outputs: changeCaseId: description: Id for the change case created