From 250a1d8ea0fc780adeeae64d3db272ebe7495d19 Mon Sep 17 00:00:00 2001 From: Wayne Sun Date: Mon, 18 May 2026 10:29:38 -0400 Subject: [PATCH] fix: remove empty secrets section from shim workflow-call template MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit actionlint flags 'secrets: {}' as a lint error — empty secrets sections are unnecessary when no secrets are passed via workflow_call. Signed-off-by: Wayne Sun --- .../scaffold/fullsend-repo/templates/shim-workflow-call.yaml | 1 - internal/scaffold/scaffold_test.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/scaffold/fullsend-repo/templates/shim-workflow-call.yaml b/internal/scaffold/fullsend-repo/templates/shim-workflow-call.yaml index 4f7c4bceb5..4ddfb66c38 100644 --- a/internal/scaffold/fullsend-repo/templates/shim-workflow-call.yaml +++ b/internal/scaffold/fullsend-repo/templates/shim-workflow-call.yaml @@ -44,7 +44,6 @@ jobs: uses: __ORG__/.fullsend/.github/workflows/dispatch.yml@main with: event_action: ${{ github.event.action }} - secrets: {} stop-fix: if: >- diff --git a/internal/scaffold/scaffold_test.go b/internal/scaffold/scaffold_test.go index a9e549ef10..394f43b74f 100644 --- a/internal/scaffold/scaffold_test.go +++ b/internal/scaffold/scaffold_test.go @@ -111,7 +111,7 @@ func TestShimWorkflowCallTemplateContent(t *testing.T) { assert.Contains(t, s, "event_action:") assert.Contains(t, s, "id-token: write") assert.Contains(t, s, "__ORG__/.fullsend/.github/workflows/dispatch.yml@main") - assert.Contains(t, s, "secrets: {}") + assert.NotContains(t, s, "secrets: {}") // Dispatch concurrency group (no cancel — thin callers handle per-stage cancellation) assert.Contains(t, s, "fullsend-dispatch-${{") assert.Contains(t, s, "cancel-in-progress: false")