Skip to content

Release: pass the signing secrets to the package workflow and refuse empty ones by name - #996

Merged
yansfil merged 1 commit into
mainfrom
ci/release-env-secrets
Oct 12, 2026
Merged

yansfil merged 1 commit into
mainfrom
ci/release-env-secrets

Conversation

@yansfil

@yansfil yansfil commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Summary

v0.4.0-rc.1 릴리스 실행(run 38204179987)이 macOS 서명 전에 실패했습니다: release environment의 서명 secret이 package.yml에 빈 값으로 도착했습니다.
원인은 GitHub의 재사용 워크플로 규칙입니다. 호출된 워크플로의 job이 environment: release를 지정해도, 호출자가 secret을 이름으로 넘기지 않으면 environment secret은 빈 문자열이 되고 오류도 나지 않습니다(Reuse workflows).
release.yml은 packages job에서 secrets: 없이 package.yml을 불렀고, #977 이후 태그가 한 번도 돌지 않아 처음 드러났습니다.

  • package.yml의 on.workflow_call.secrets에 다섯 secret을 required: false로 선언합니다(PR과 nightly 호출자는 넘기지 않음).
  • release.yml이 다섯 개를 이름으로 넘깁니다(secrets: inherit 대신 최소 권한).
  • 서명 설치 단계가 빈 secret을 이름으로 짚어 바로 멈춥니다. 이전에는 security: SecKeychainItemImport: One or more parameters ... were not valid라는 알아보기 힘든 오류였습니다.
  • docs/BUILD.md, Developer ID signing에 secret이 job에 닿는 경로와 그 규칙을 적었습니다.

Review

  • 조심해서 볼 파일: .github/workflows/release.yml, .github/workflows/package.yml - failure path. 서명 secret이 어디까지 흘러가는지 바뀝니다. release.yml에서만 넘기고, PR과 nightly는 그대로 아무것도 넘기지 않습니다.

Evidence

  • 확인한 것: GitHub 문서 문구 "The caller workflow must still pass the secret", "You can pass a secret by name even if it only exists in the environment", "If the caller workflow doesn't pass an environment secret, the secret resolves to an empty string".
  • 확인한 것: actionlint 1.7.12가 두 워크플로에서 오류 없음.
  • 확인한 것: 빈 값 검사를 로컬 bash로 실행: 세 개가 비면 그 세 이름을 담은 ::error::와 exit 1, 다섯 개가 다 있으면 exit 0.
  • 확인하지 못한 것: secret이 실제로 도착하는지는 PR 실행으로 증명할 수 없습니다. PR은 태그도 release environment도 쓰지 않습니다. 머지 후 v0.4.0-rc.2 태그 실행이 처음 증명합니다.

@yansfil
yansfil merged commit e2f8bd2 into main Oct 12, 2026
17 checks passed
@yansfil
yansfil deleted the ci/release-env-secrets branch October 12, 2026 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant