Closed FernandoArteaga closed 1 year ago
This solution worked for me
https://github.com/FirebaseExtended/action-hosting-deploy/issues/108#issuecomment-885215418
This solution worked for me
Thank you for the hint, I could make it work by adding the right permissions to the job:
permissions:
contents: read
checks: write
pull-requests: write
Full job detail:
deploy:
name: "Deploy to Firebase"
runs-on: ubuntu-latest
needs: build
permissions:
contents: read
checks: write
pull-requests: write
steps:
- uses: actions/checkout@v3
- name: "Build app"
run: "npm ci && npm build"
- name: "Deploy to preview channel"
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT }}"
expires: 1d
projectId: my-project
Action config
Using the following configuration, which is basically the same as the example provided at the Readme, I get an authorization error.
If I comment out the input
repoToken
no error is presented. I tried to run the workflowon: pull_request_target
but nothing happens, the workflow doesn't get triggeredError message