Skip to content

Commit 30c80be

Browse files
authored
Merge pull request #484 from loopandlearn/fix/validate_secrets
fix validate_secrets regression, detect and annotate errors
2 parents e12342f + 3ed4264 commit 30c80be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/validate_secrets.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ jobs:
168168
elif ! echo "$FASTLANE_KEY" | openssl pkcs8 -nocrypt >/dev/null; then
169169
failed=true
170170
echo "::error::The FASTLANE_KEY secret is set but invalid. Verify that you copied it correctly from the API Key file (*.p8) you downloaded and try again."
171-
elif ! (bundle exec fastlane validate_secrets 2>&1 || true) | tee fastlane.log; then # ignore "fastlane validate_secrets" errors and continue on errors without annotating an exit code
172-
if grep -q "bad decrypt" fastlane.log; then
171+
elif ! bundle exec fastlane validate_secrets 2>&1 | tee fastlane.log; then
172+
if grep -q "Couldn't decrypt the repo" fastlane.log; then
173173
failed=true
174174
echo "::error::Unable to decrypt the Match-Secrets repository using the MATCH_PASSWORD secret. Verify that it is set correctly and try again."
175175
elif grep -q -e "required agreement" -e "license agreement" fastlane.log; then

0 commit comments

Comments
 (0)