fix zizmor findings in build workflows
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -23,6 +23,31 @@ on:
|
|||||||
version-code:
|
version-code:
|
||||||
description: Android version code
|
description: Android version code
|
||||||
value: ${{ jobs.build.outputs.version-code }}
|
value: ${{ jobs.build.outputs.version-code }}
|
||||||
|
secrets:
|
||||||
|
EXPO_TOKEN:
|
||||||
|
required: true
|
||||||
|
ENV_TOKEN:
|
||||||
|
required: true
|
||||||
|
SENTRY_DSN:
|
||||||
|
required: true
|
||||||
|
BITDRIFT_API_KEY:
|
||||||
|
required: true
|
||||||
|
EXPO_PUBLIC_GCP_PROJECT_ID:
|
||||||
|
required: true
|
||||||
|
GOOGLE_SERVICES_TOKEN:
|
||||||
|
required: true
|
||||||
|
SENTRY_AUTH_TOKEN:
|
||||||
|
required: true
|
||||||
|
SLACK_CLIENT_ALERT_WEBHOOK:
|
||||||
|
required: true
|
||||||
|
ANDROID_KEYSTORE_BASE64:
|
||||||
|
required: true
|
||||||
|
ANDROID_KEYSTORE_PASSWORD:
|
||||||
|
required: true
|
||||||
|
ANDROID_KEY_ALIAS:
|
||||||
|
required: true
|
||||||
|
ANDROID_KEY_PASSWORD:
|
||||||
|
required: true
|
||||||
|
|
||||||
# Deploys happen via EAS using EXPO_TOKEN; the GITHUB_TOKEN only checks out code
|
# Deploys happen via EAS using EXPO_TOKEN; the GITHUB_TOKEN only checks out code
|
||||||
permissions:
|
permissions:
|
||||||
@@ -238,11 +263,14 @@ jobs:
|
|||||||
- name: 📎 Attach APK to GitHub Release
|
- name: 📎 Attach APK to GitHub Release
|
||||||
id: attach
|
id: attach
|
||||||
if: ${{ steps.release-check.outputs.exists == 'true' }}
|
if: ${{ steps.release-check.outputs.exists == 'true' }}
|
||||||
uses: softprops/action-gh-release@718ea10b132b3b2eba29c1007bb80653f286566b # v3.0.1
|
env:
|
||||||
with:
|
GH_TOKEN: ${{ github.token }}
|
||||||
tag_name: ${{ github.ref_name }}
|
TAG: ${{ github.ref_name }}
|
||||||
files: Bluesky-${{ needs.build.outputs.package-version }}.apk
|
APK: Bluesky-${{ needs.build.outputs.package-version }}.apk
|
||||||
fail_on_unmatched_files: true
|
run: |
|
||||||
|
gh release upload "$TAG" "$APK" --clobber
|
||||||
|
url=$(gh release view "$TAG" --json url --jq .url)
|
||||||
|
echo "url=$url" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: 🔔 Notify Slack of Release Attachment
|
- name: 🔔 Notify Slack of Release Attachment
|
||||||
if: ${{ steps.release-check.outputs.exists == 'true' }}
|
if: ${{ steps.release-check.outputs.exists == 'true' }}
|
||||||
|
|||||||
@@ -35,6 +35,29 @@ on:
|
|||||||
build-number:
|
build-number:
|
||||||
description: iOS build number
|
description: iOS build number
|
||||||
value: ${{ jobs.build.outputs.build-number }}
|
value: ${{ jobs.build.outputs.build-number }}
|
||||||
|
secrets:
|
||||||
|
EXPO_TOKEN:
|
||||||
|
required: true
|
||||||
|
ENV_TOKEN:
|
||||||
|
required: true
|
||||||
|
SENTRY_DSN:
|
||||||
|
required: true
|
||||||
|
BITDRIFT_API_KEY:
|
||||||
|
required: true
|
||||||
|
EXPO_PUBLIC_GCP_PROJECT_ID:
|
||||||
|
required: true
|
||||||
|
GOOGLE_SERVICES_TOKEN:
|
||||||
|
required: true
|
||||||
|
SENTRY_AUTH_TOKEN:
|
||||||
|
required: true
|
||||||
|
ASC_KEY_ID:
|
||||||
|
required: true
|
||||||
|
ASC_ISSUER_ID:
|
||||||
|
required: true
|
||||||
|
ASC_KEY_P8_BASE64:
|
||||||
|
required: true
|
||||||
|
SLACK_CLIENT_ALERT_WEBHOOK:
|
||||||
|
required: true
|
||||||
|
|
||||||
# Deploys happen via EAS using EXPO_TOKEN; the GITHUB_TOKEN only checks out code
|
# Deploys happen via EAS using EXPO_TOKEN; the GITHUB_TOKEN only checks out code
|
||||||
permissions:
|
permissions:
|
||||||
|
|||||||
@@ -78,7 +78,20 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
profile: testflight
|
profile: testflight
|
||||||
testFlightGroup: "QA Team"
|
testFlightGroup: "QA Team"
|
||||||
secrets: inherit
|
# Pass only the secrets the reusable workflow declares, rather than `secrets: inherit`,
|
||||||
|
# so the nightly build never hands the reusable workflow the entire repo secret store.
|
||||||
|
secrets:
|
||||||
|
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}
|
||||||
|
ENV_TOKEN: ${{ secrets.ENV_TOKEN }}
|
||||||
|
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
|
||||||
|
BITDRIFT_API_KEY: ${{ secrets.BITDRIFT_API_KEY }}
|
||||||
|
EXPO_PUBLIC_GCP_PROJECT_ID: ${{ secrets.EXPO_PUBLIC_GCP_PROJECT_ID }}
|
||||||
|
GOOGLE_SERVICES_TOKEN: ${{ secrets.GOOGLE_SERVICES_TOKEN }}
|
||||||
|
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
||||||
|
ASC_KEY_ID: ${{ secrets.ASC_KEY_ID }}
|
||||||
|
ASC_ISSUER_ID: ${{ secrets.ASC_ISSUER_ID }}
|
||||||
|
ASC_KEY_P8_BASE64: ${{ secrets.ASC_KEY_P8_BASE64 }}
|
||||||
|
SLACK_CLIENT_ALERT_WEBHOOK: ${{ secrets.SLACK_CLIENT_ALERT_WEBHOOK }}
|
||||||
|
|
||||||
android:
|
android:
|
||||||
name: Nightly Android Build
|
name: Nightly Android Build
|
||||||
@@ -91,7 +104,21 @@ jobs:
|
|||||||
uses: ./.github/workflows/build-submit-android.yml
|
uses: ./.github/workflows/build-submit-android.yml
|
||||||
with:
|
with:
|
||||||
profile: testflight-android
|
profile: testflight-android
|
||||||
secrets: inherit
|
# Pass only the secrets the reusable workflow declares, rather than `secrets: inherit`,
|
||||||
|
# so the nightly build never hands the reusable workflow the entire repo secret store.
|
||||||
|
secrets:
|
||||||
|
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}
|
||||||
|
ENV_TOKEN: ${{ secrets.ENV_TOKEN }}
|
||||||
|
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
|
||||||
|
BITDRIFT_API_KEY: ${{ secrets.BITDRIFT_API_KEY }}
|
||||||
|
EXPO_PUBLIC_GCP_PROJECT_ID: ${{ secrets.EXPO_PUBLIC_GCP_PROJECT_ID }}
|
||||||
|
GOOGLE_SERVICES_TOKEN: ${{ secrets.GOOGLE_SERVICES_TOKEN }}
|
||||||
|
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
||||||
|
SLACK_CLIENT_ALERT_WEBHOOK: ${{ secrets.SLACK_CLIENT_ALERT_WEBHOOK }}
|
||||||
|
ANDROID_KEYSTORE_BASE64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
|
||||||
|
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
|
||||||
|
ANDROID_KEY_ALIAS: ${{ secrets.ANDROID_KEY_ALIAS }}
|
||||||
|
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD }}
|
||||||
|
|
||||||
notify-ios:
|
notify-ios:
|
||||||
name: Notify Slack of iOS nightly
|
name: Notify Slack of iOS nightly
|
||||||
|
|||||||
Reference in New Issue
Block a user