Repository navigation
Release: pass the signing secrets to the package workflow and refuse empty ones by name - #996
Merged
Merged
Conversation
…empty ones by name
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
v0.4.0-rc.1릴리스 실행(run 38204179987)이 macOS 서명 전에 실패했습니다:releaseenvironment의 서명 secret이package.yml에 빈 값으로 도착했습니다.원인은 GitHub의 재사용 워크플로 규칙입니다. 호출된 워크플로의 job이
environment: release를 지정해도, 호출자가 secret을 이름으로 넘기지 않으면 environment secret은 빈 문자열이 되고 오류도 나지 않습니다(Reuse workflows).release.yml은packagesjob에서secrets:없이package.yml을 불렀고, #977 이후 태그가 한 번도 돌지 않아 처음 드러났습니다.package.yml의on.workflow_call.secrets에 다섯 secret을required: false로 선언합니다(PR과 nightly 호출자는 넘기지 않음).release.yml이 다섯 개를 이름으로 넘깁니다(secrets: inherit대신 최소 권한).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
::error::와 exit 1, 다섯 개가 다 있으면 exit 0.releaseenvironment도 쓰지 않습니다. 머지 후v0.4.0-rc.2태그 실행이 처음 증명합니다.