{"id":13474697,"url":"https://github.com/w9jds/firebase-action","last_synced_at":"2026-05-14T02:03:14.811Z","repository":{"id":38857900,"uuid":"159878508","full_name":"w9jds/firebase-action","owner":"w9jds","description":"GitHub Action for interacting with Firebase","archived":false,"fork":false,"pushed_at":"2026-02-13T00:13:08.000Z","size":198,"stargazers_count":951,"open_issues_count":39,"forks_count":206,"subscribers_count":6,"default_branch":"master","last_synced_at":"2026-02-13T09:56:57.852Z","etag":null,"topics":["firebase","firebase-tools","github-actions"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/w9jds.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-11-30T21:05:08.000Z","updated_at":"2026-02-13T00:13:13.000Z","dependencies_parsed_at":"2023-12-15T01:26:20.427Z","dependency_job_id":"aa35b581-0ae4-45ba-9fb2-3308a8ccb19e","html_url":"https://github.com/w9jds/firebase-action","commit_stats":{"total_commits":228,"total_committers":31,"mean_commits":7.354838709677419,"dds":0.6754385964912281,"last_synced_commit":"b149fcd86198236adeebd9ba3dcafe5da86eb0cd"},"previous_names":[],"tags_count":155,"template":false,"template_full_name":null,"purl":"pkg:github/w9jds/firebase-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/w9jds%2Ffirebase-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/w9jds%2Ffirebase-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/w9jds%2Ffirebase-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/w9jds%2Ffirebase-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/w9jds","download_url":"https://codeload.github.com/w9jds/firebase-action/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/w9jds%2Ffirebase-action/sbom","scorecard":{"id":1071340,"data":{"date":"2025-07-21","repo":{"name":"github.com/w9jds/firebase-action","commit":"5529f46caa837c54998d66699d08059deac2357b"},"scorecard":{"version":"v5.2.1-24-gc29a04d4","commit":"c29a04d46d1570393e94662bc34e9906398e1bfa"},"score":4.7,"checks":[{"name":"Maintained","score":10,"reason":"15 commit(s) and 4 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/c29a04d46d1570393e94662bc34e9906398e1bfa/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/c29a04d46d1570393e94662bc34e9906398e1bfa/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/c29a04d46d1570393e94662bc34e9906398e1bfa/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/c29a04d46d1570393e94662bc34e9906398e1bfa/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/c29a04d46d1570393e94662bc34e9906398e1bfa/docs/checks.md#sast"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: jobLevel 'contents' permission set to 'write': .github/workflows/check-release.yml:52","Warn: no topLevel permission defined: .github/workflows/build-publish.yaml:1","Warn: no topLevel permission defined: .github/workflows/check-release.yml:1","Warn: no topLevel permission defined: .github/workflows/docker-build-ci.yml:1"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/c29a04d46d1570393e94662bc34e9906398e1bfa/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/c29a04d46d1570393e94662bc34e9906398e1bfa/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/c29a04d46d1570393e94662bc34e9906398e1bfa/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/c29a04d46d1570393e94662bc34e9906398e1bfa/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/c29a04d46d1570393e94662bc34e9906398e1bfa/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/c29a04d46d1570393e94662bc34e9906398e1bfa/docs/checks.md#license"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-publish.yaml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/w9jds/firebase-action/build-publish.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build-publish.yaml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/w9jds/firebase-action/build-publish.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build-publish.yaml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/w9jds/firebase-action/build-publish.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build-publish.yaml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/w9jds/firebase-action/build-publish.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build-publish.yaml:50: update your workflow using https://app.stepsecurity.io/secureworkflow/w9jds/firebase-action/build-publish.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/check-release.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/w9jds/firebase-action/check-release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/check-release.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/w9jds/firebase-action/check-release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/check-release.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/w9jds/firebase-action/check-release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check-release.yml:61: update your workflow using https://app.stepsecurity.io/secureworkflow/w9jds/firebase-action/check-release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/check-release.yml:74: update your workflow using https://app.stepsecurity.io/secureworkflow/w9jds/firebase-action/check-release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/check-release.yml:95: update your workflow using https://app.stepsecurity.io/secureworkflow/w9jds/firebase-action/check-release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check-release.yml:112: update your workflow using https://app.stepsecurity.io/secureworkflow/w9jds/firebase-action/check-release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/check-release.yml:119: update your workflow using https://app.stepsecurity.io/secureworkflow/w9jds/firebase-action/check-release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/check-release.yml:130: update your workflow using https://app.stepsecurity.io/secureworkflow/w9jds/firebase-action/check-release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/check-release.yml:137: update your workflow using https://app.stepsecurity.io/secureworkflow/w9jds/firebase-action/check-release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/check-release.yml:144: update your workflow using https://app.stepsecurity.io/secureworkflow/w9jds/firebase-action/check-release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docker-build-ci.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/w9jds/firebase-action/docker-build-ci.yml/master?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating timbru31/java-node:21-jdk-jod to timbru31/java-node:21-jdk-jod@sha256:9bd76b587590bdd3008baecc88ec05429c2ae04254c90860009c5026573d124d","Warn: npmCommand not pinned by hash: Dockerfile:15","Warn: npmCommand not pinned by hash: Dockerfile:16","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of  13 third-party GitHubAction dependencies pinned","Info:   0 out of   1 containerImage dependencies pinned","Info:   0 out of   2 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/c29a04d46d1570393e94662bc34e9906398e1bfa/docs/checks.md#pinned-dependencies"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/c29a04d46d1570393e94662bc34e9906398e1bfa/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/c29a04d46d1570393e94662bc34e9906398e1bfa/docs/checks.md#branch-protection"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/build-publish.yaml:14"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/c29a04d46d1570393e94662bc34e9906398e1bfa/docs/checks.md#packaging"}}]},"last_synced_at":"2025-08-28T07:59:31.915Z","repository_id":38857900,"created_at":"2025-08-28T07:59:31.924Z","updated_at":"2025-08-28T07:59:31.924Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29671513,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T00:11:43.526Z","status":"online","status_checked_at":"2026-02-21T02:00:07.432Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["firebase","firebase-tools","github-actions"],"created_at":"2024-07-31T16:01:14.152Z","updated_at":"2026-02-21T02:02:43.166Z","avatar_url":"https://github.com/w9jds.png","language":"Shell","funding_links":[],"categories":["Community Resources","Shell","Uncategorized"],"sub_categories":["External Services","Uncategorized"],"readme":"# GitHub Actions for Firebase\n\nThis Action for [firebase-tools](https://github.com/firebase/firebase-tools) enables arbitrary actions with the `firebase` command-line client.\n\nIf you want a more flexible implementation, an early version of a rewrite is available here: [setup-firebase](https://github.com/w9jds/setup-firebase) that allows you to choose node and java version and run more than one command.\n\n## Inputs\n\n* `args` - **Required**. This is the arguments you want to use for the `firebase` cli\n\n## Outputs\n\n~~* `response` - The full response from the firebase command current run (Will most likely require a grep to get what you want, like URLS)~~\n\n_**Response has been removed for now as it caused loads of issues in the bash script**_\n\n\n## Environment variables\n\n* `GCP_SA_KEY` - **Required if FIREBASE_TOKEN is not set**. A **normal** service account key (json format) or a **base64 encoded** service account key with the needed permissions for what you are trying to deploy/update.\n  * Since the service account is using the App Engine default service account in the deploy process, it also needs the `Service Account User` role.\n  * If deploying functions, you would also need the `Cloud Functions Developer` role.\n    * If the deploy has scheduled functions, include the `Cloud Scheduler Admin` role.\n    * If the deploy requires access to secrets, include the `Secret Manager Viewer` role.\n    * If updating Firestore Rules, include the `Firebase Rules Admin` role.\n    * If the project is using Blocking functions (beforeCreate or beforeSignin) , include the `Firebase Functions Admin` role.\n  * If updating Firestore Indexes, include the `Cloud Datastore Index Admin` role.\n  * If deploying Hosting files, include the `Firebase Hosting Admin` role.\n  * If updating Remote Config, include the `Firebase Remote Config Admin` role.\n  * For more details: https://firebase.google.com/docs/hosting/github-integration\n\n* `FIREBASE_TOKEN` - **Required if GCP_SA_KEY is not set**. _**This method will soon be deprecated, use `GCP_SA_KEY` instead**_. The token to use for authentication. This token can be aquired through the `firebase login:ci` command.\n\n* `GOOGLE_APPLICATION_CREDENTIALS` - **Required if GCP_SA_KEY or FIREBASE_TOKEN is not set**. the location of a credential JSON file. For more details: https://cloud.google.com/docs/authentication/application-default-credentials#GAC\n\n* `PROJECT_ID` - **Optional**. To specify a specific project to use for all commands. Not required if you specify a project in your `.firebaserc` file. If you use this, you need to give `Viewer` permission roles to your service account otherwise the action will fail with authentication errors.\n\n* `PROJECT_PATH` - **Optional**. The path to the folder containing `firebase.json` if it doesn't exist at the root of your repository. e.g. `./my-app`.\n\n* `CONFIG_VALUES` - **Optional**. The configuration values for Firebase function that would normally be set with `firebase functions:config:set [value]`. Example: `CONFIG_VALUES: stripe.secret_key=SECRET_KEY zapier.secret_key=SECRET_KEY`.\n\n## Example\n\nTo authenticate with Firebase, and deploy to Firebase Hosting:\n\n```yaml\nname: Build and Deploy\non:\n  push:\n    branches:\n      - master\n\njobs:\n  build:\n    name: Build\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout Repo\n        uses: actions/checkout@master\n      - name: Install Dependencies\n        run: npm install\n      - name: Build\n        run: npm run build-prod\n      - name: Archive Production Artifact\n        uses: actions/upload-artifact@master\n        with:\n          name: dist\n          path: dist\n  deploy:\n    name: Deploy\n    needs: build\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout Repo\n        uses: actions/checkout@master\n      - name: Download Artifact\n        uses: actions/download-artifact@master\n        with:\n          name: dist\n          path: dist\n      - name: Deploy to Firebase\n        uses: w9jds/firebase-action@master\n        with:\n          args: deploy --only hosting\n        env:\n          FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}\n```\nAlternatively:\n\n```yaml\n        env:\n          GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }}\n```\n\n\nIf you have multiple hosting environments you can specify which one in the args line.\ne.g. `args: deploy --only hosting:[environment name]`\n\nIf you want to add a message to a deployment (e.g. the Git commit message) you need to take extra care and escape the quotes or the YAML breaks.\n\n```yaml\n        with:\n          args: deploy --message \\\"${{ github.event.head_commit.message }}\\\"\n```\n\n## Alternate versions\n\nStarting with version v2.1.2 each version release will point to a versioned docker image allowing for hardening our pipeline (so things don't break when I do something dump). On top of this, you can also point to a `master` version if you would like to test out what might not be deployed into a release yet by using something like this:\n\n```yaml\n  name: Deploy to Firebase\n  uses: docker://w9jds/firebase-action:master\n  with:\n    args: deploy --only hosting\n  env:\n    FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}\n\n```\n\n## License\n\nThe Dockerfile and associated scripts and documentation in this project are released under the [MIT License](LICENSE).\n\n\n### Recommendation\n\nIf you decide to do seperate jobs for build and deployment (which is probably advisable), then make sure to clone your repo as the Firebase-cli requires the firebase repo to deploy (specifically the `firebase.json`)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fw9jds%2Ffirebase-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fw9jds%2Ffirebase-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fw9jds%2Ffirebase-action/lists"}