Skip to content

Commit

Permalink
fix: Fixed Google Service file creation in workflows
Browse files Browse the repository at this point in the history
Corrected the command for creating the Google Service file from the base64 encoded secret in both the Android CI and
 CodeQL workflows.
This fixes an issue where the file was not being created correctly due to incorrect flags used with the `base64` command.

Signed-off-by: Gabriel Fontán <[email protected]>
  • Loading branch information
BobbyESP committed Aug 15, 2024
1 parent 7d16c79 commit 4c8f1c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/android_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ jobs:
echo "CLIENT_SECRET=${{ secrets.CLIENT_SECRET }}" >> local.properties
- name: Create Google Service file
env:
DATA: ${{ secrets.GOOGLE_SERVICES_JSON }}
run: echo $DATA | base64 -d > app/google-services.json
run: echo ${{ secrets.GOOGLE_SERVICES_JSON }} | base64 -di > app/google-services.json

- uses: gradle/actions/setup-gradle@v3

Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ jobs:
echo "CLIENT_SECRET=${{ secrets.CLIENT_SECRET }}" >> local.properties
- name: Create Google Service file
env:
DATA: ${{ secrets.GOOGLE_SERVICES_JSON }}
run: echo $DATA | base64 -d > app/google-services.json
run: echo ${{ secrets.GOOGLE_SERVICES_JSON }} | base64 -di > app/google-services.json


# Initialize CodeQL tools for scanning
Expand Down

0 comments on commit 4c8f1c9

Please sign in to comment.