chore: Potential fix for code scanning alert no. 1: Workflow does not contain permissions #221
Workflow file for this run
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
| name: Build and Test macOS | |
| on: | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout Project | |
| uses: actions/checkout@v4 | |
| - name: Setup Fastlane Auth | |
| run: echo "FASTLANE_GIT_BASIC_AUTHORIZATION=$(echo -n taplytics-robot:${{ secrets.AUTOMATION_USER_TOKEN }} | base64)" >> "$GITHUB_ENV" | |
| - name: "Select Latest Xcode" | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: latest-stable | |
| - name: "Carthage Cached Bootstrap" | |
| uses: DevCycleHQ/[email protected] | |
| with: | |
| github-token: ${{ secrets.AUTOMATION_USER_TOKEN }} | |
| use-xcframeworks: true | |
| - name: Fastlane macOS Tests | |
| run: fastlane mac tests | |
| env: | |
| MATCH_GIT_BASIC_AUTHORIZATION: "${{ env.FASTLANE_GIT_BASIC_AUTHORIZATION }}" | |
| DEVELOPER_APP_ID: "${{ secrets.DEVELOPER_APP_ID }}" | |
| MATCH_PASSWORD: "${{ secrets.MATCH_PASSWORD }}" | |
| TEMP_KEYCHAIN_PASSWORD: "${{ secrets.TEMP_KEYCHAIN_PASSWORD }}" | |
| TEMP_KEYCHAIN_USER: "${{ secrets.TEMP_KEYCHAIN_USER }}" | |
| APPLE_KEY_ID: "${{ secrets.APPLE_KEY_ID }}" | |
| APPLE_ISSUER_ID: "${{ secrets.APPLE_ISSUER_ID }}" | |
| APPLE_KEY_CONTENT: "${{ secrets.APPLE_KEY_CONTENT }}" |