Update Google Service file loading command #463
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: "CodeQL" | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| schedule: | |
| - cron: '21 14 * * 6' | |
| jobs: | |
| analyze: | |
| name: Analyze Kotlin Code | |
| runs-on: ubuntu-latest | |
| permissions: | |
| security-events: write | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| language: [java-kotlin] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v3 | |
| with: | |
| distribution: 'zulu' | |
| java-version: '17' | |
| - name: Create keys.properties | |
| run: | | |
| echo "API_KEY=${{ secrets.API_KEY }}" > app/keys.properties | |
| echo "EMAIL_PASSWORD=${{ secrets.EMAIL_PASSWORD }}" >> app/keys.properties | |
| - name: Create local.properties | |
| run: echo "sdk.dir=/usr/local/android-sdk" > local.properties | |
| - name: Load Google Service file | |
| env: | |
| DATA: ${{ secrets.GOOGLE_SERVICES_JSON }} | |
| run: echo $DATA | base64 -di > app/google-services.json | |
| - name: Load Service Account file | |
| env: | |
| DATA: ${{ secrets.SERVICE_ACCOUNT_JSON }} | |
| run: echo $DATA | base64 -di > app/service-account.json | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@v3 | |
| with: | |
| languages: ${{ matrix.language }} | |
| build-mode: ${{ matrix.build-mode }} | |
| - name: Build the project | |
| run: ./gradlew clean build | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@v3 | |
| with: | |
| category: "/language:${{ matrix.language }}" |