Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c53daac

Browse files
committed
Wrap signing certificate password in single quotes to prevent corruption
High quality passwords may contain characters with special treatment by the shell (e.g., $). The release workflows contain a command that imports the macOS code signing certificate to the runner machine's keychain. The command references a GitHub Actions secret that contains the password of the certificate. Previously, that reference was wrapped in double quotes. This resulted in the password string being subject to shell expansions. If the password contained characters that incidentally resemble shell code, this resulted in the corruption of the password, nd thus a spurious failure of the release workflow: ``` security: SecKeychainItemImport: The user name or passphrase you entered is not correct. ```
1 parent 6e865aa commit c53daac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎.github/workflows/publish-go-nightly-task.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ jobs:
140140
-f pkcs12 \
141141
-A \
142142
-T /usr/bin/codesign \
143-
-P "${{ secrets.INSTALLER_CERT_MAC_PASSWORD }}"
143+
-P '${{ secrets.INSTALLER_CERT_MAC_PASSWORD }}'
144144
145145
security set-key-partition-list \
146146
-S apple-tool:,apple: \

‎.github/workflows/release-go-task.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ jobs:
150150
-f pkcs12 \
151151
-A \
152152
-T "/usr/bin/codesign" \
153-
-P "${{ secrets.INSTALLER_CERT_MAC_PASSWORD }}"
153+
-P '${{ secrets.INSTALLER_CERT_MAC_PASSWORD }}'
154154
155155
security set-key-partition-list \
156156
-S apple-tool:,apple: \

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /