Skip to content

Commit

Permalink
Add regression test for token in output
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmaguire committed Jan 31, 2024
1 parent 7a048d8 commit 4113360
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ jobs:
echo -n "$GOOGLE_PLAY_KEYSTORE_BASE64" | base64 --decode --output "$GOOGLE_PLAY_KEYSTORE_PATH"
- name: Get build name and number, install dependencies
env:
TOKEN: ${{ secrets.MACHINE_USER_PAT }}
run: |
go install golang.org/x/mobile/cmd/gomobile@latest
gomobile init
Expand All @@ -81,12 +83,20 @@ jobs:
- name: Build iOS
env:
TOKEN: ${{ secrets.MACHINE_USER_PAT }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
run: |
cd ios
pod install
fastlane build
# verify that the github token didn't make it into the output
mkdir -p build/app/test-ios
cp ios/MobileNebula.ipa build/app/test-ios
cd build/app/test-ios
unzip MobileNebula.ipa
find . | xargs strings &>/dev/null | grep -F "${TOKEN}" &>/dev/null && exit 1
- name: Collect iOS artifacts
uses: actions/upload-artifact@v3
with:
Expand All @@ -101,6 +111,13 @@ jobs:
run: |
flutter build appbundle --build-number="$BUILD_NUMBER" --build-name="$BUILD_NAME"
# verify that the github token didn't make it into the output
mkdir -p build/app/test-android
cp build/app/outputs/bundle/release/app-release.aab build/app/test-android
cd build/app/test-android
unzip app-release.aab
find . | xargs strings &>/dev/null | grep -F "${TOKEN}" &>/dev/null && exit 1
- name: Collect Android artifacts
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 4113360

Please sign in to comment.