{"id":37206313,"url":"https://github.com/sachasmart/terrafir-github-action","last_synced_at":"2026-01-14T23:45:11.702Z","repository":{"id":196305765,"uuid":"693827754","full_name":"sachasmart/terrafir-github-action","owner":"sachasmart","description":"Terrafir Github Action","archived":false,"fork":false,"pushed_at":"2024-03-17T19:44:28.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-21T08:07:40.672Z","etag":null,"topics":["cicd","devops"],"latest_commit_sha":null,"homepage":"https://www.terrafir.com","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sachasmart.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-09-19T19:46:39.000Z","updated_at":"2023-09-24T03:46:41.000Z","dependencies_parsed_at":"2023-09-24T09:26:23.671Z","dependency_job_id":"9205e8bc-892b-445b-964f-0722fe7a2c4e","html_url":"https://github.com/sachasmart/terrafir-github-action","commit_stats":null,"previous_names":["sachasmart/terrafir-github-action"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/sachasmart/terrafir-github-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sachasmart%2Fterrafir-github-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sachasmart%2Fterrafir-github-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sachasmart%2Fterrafir-github-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sachasmart%2Fterrafir-github-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sachasmart","download_url":"https://codeload.github.com/sachasmart/terrafir-github-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sachasmart%2Fterrafir-github-action/sbom","scorecard":{"id":794415,"data":{"date":"2025-08-11","repo":{"name":"github.com/sachasmart/terrafir-github-action","commit":"8232ef861738e94a3e44c704afe3948586e214e3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.4,"checks":[{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/9 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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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/terrafir.yaml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/sachasmart/terrafir-github-action/terrafir.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/terrafir.yaml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/sachasmart/terrafir-github-action/terrafir.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/terrafir.yaml:49: update your workflow using https://app.stepsecurity.io/secureworkflow/sachasmart/terrafir-github-action/terrafir.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/terrafir.yaml:65: update your workflow using https://app.stepsecurity.io/secureworkflow/sachasmart/terrafir-github-action/terrafir.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/terrafir.yaml:77: update your workflow using https://app.stepsecurity.io/secureworkflow/sachasmart/terrafir-github-action/terrafir.yaml/main?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:7","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   4 third-party GitHubAction dependencies pinned","Info:   0 out of   1 containerImage 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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/terrafir.yaml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":2,"reason":"8 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2024-3321 / GHSA-v778-237x-gjrc","Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77","Warn: Project is vulnerable to: GO-2024-2687 / GHSA-4v7x-pqxf-cx7m","Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw","Warn: Project is vulnerable to: GO-2025-3488 / GHSA-6v2p-p543-phr9","Warn: Project is vulnerable to: GO-2024-2611 / GHSA-8r3f-844c-mc37"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T08:31:47.842Z","repository_id":196305765,"created_at":"2025-08-23T08:31:47.842Z","updated_at":"2025-08-23T08:31:47.842Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28439535,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T22:37:52.437Z","status":"ssl_error","status_checked_at":"2026-01-14T22:37:31.496Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cicd","devops"],"created_at":"2026-01-14T23:45:11.229Z","updated_at":"2026-01-14T23:45:11.679Z","avatar_url":"https://github.com/sachasmart.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terrafir Github Action\n\n## 👋 Overview\n\nThis Github Action is used to assess Terraform plans using [Terrafir](https://www.terrafir.com). It is intended to be used in a CI/CD pipeline to assess Terraform plans before they are applied. You can see the output of the plan in the Terrafir dashboard or the Github Action output.\n\n## 🚀 Usage\n\n### Inputs\n\n| Name             | Description                                                        | Required |\n| ---------------- | ------------------------------------------------------------------ | -------- |\n| apiKey           | The API key used to authenticate with Terrafir                     | true     |\n| email            | The email address of the user who owns the API key                 | true     |\n| token            | Github Token                                                       | true     |\n| **WIP: verbose** | Whether or not to print the assessment to the Github Action output | false    |\n\n### Flow\n\n```mermaid\n---\ntitle: Terrafir Github Action\n---\nflowchart TD\n    A[\"Github Action\n        Inputs:\n        - Terrafir API Key (apiKey)\n        - Email of Terrafir Account (email)\n    \"]--Spins up Docker Container - Dockerfile--\u003eB[Container]\n    B --Make Post Request to Terrafir API--\u003eC[Terrafir API]\n    C --Authorizes Request--\u003eD[AuthService]\n    D -.Allow Plan Assessment.-\u003eE\n    C \u003c--Assesses Plan --\u003eE[PlanService]\n    E \u003c--Sent Plan to Policy Engine --\u003eF[Policy Engine]\n    C --Processes Assessment and Returns Result to Container--\u003eB\n    B --Receives Assessment and Creates Github Comment Output--\u003eA\n```\n\n### Sample CI/CD Pipeline Using Terrafir Github Action\n\n```yaml\nname: Terrafir Test Action\n\non:\n  push:\n    branches:\n      - master\n  workflow_dispatch:\n    inputs:\n      target:\n        description: \"Test github action\"\n        required: false\n        default: \"run_terrafir_github_action\"\n        type: choice\n        options:\n          - run_terrafir_github_action\n      cloud_provider:\n        description: \"Cloud provider to use\"\n        required: true\n        default: \"aws\"\n        type: choice\n        options:\n          - aws\n          - gcp\n          - azure\n\nenv:\n  CLOUD_PROVIDER: aws\n  REGION: us-east-2\n\njobs:\n  run_terrafir_github_action:\n    if: ${{ github.event.trigger != 'workflow_dispatch' || inputs.target == 'all' || inputs.target == 'run_terrafir_github_action' }}\n    runs-on: ubuntu-latest\n    name: Run Terrafir GitHub Action\n    defaults:\n      run:\n        working-directory: .\n    steps:\n      - name: Checkout Code\n        uses: actions/checkout@v2\n\n      - name: Setup Terraform\n        uses: hashicorp/setup-terraform@v1\n        with:\n          terraform_version: 1.5.7\n\n      - name: Configure AWS Credentials\n        uses: aws-actions/configure-aws-credentials@v1\n        if: env.CLOUD_PROVIDER == 'aws'\n        with:\n          aws-access-key-id: ${{ secrets.ACCESS_KEY_ID }}\n          aws-secret-access-key: ${{ secrets.ACCESS_KEY }}\n          aws-region: ${{ env.REGION }}\n\n      - name: Configure GCP Credentials\n        uses: google-github-actions/setup-gcloud@v1.1.1\n        if: env.CLOUD_PROVIDER == 'gcp'\n        with:\n          project_id: ${{ secrets.GCP_PROJECT_ID }}\n          service_account_key: ${{ secrets.GCP_SA_KEY }}\n          export_default_credentials: true\n\n      - name: Configure Azure Credentials\n        uses: azure/login@v1\n        if: env.CLOUD_PROVIDER == 'azure'\n        with:\n          creds: ${{ secrets.AZURE_CREDENTIALS }}\n\n      - name: Save plan to Runner workspace\n        id: plan\n        run: |\n          terraform plan --out tfplan.binary\n          terraform show -json tfplan.binary \u003e input.json # Currently needs to output to input.json\n\n      - name: Run Terrafir\n        uses: sachasmart/terrafir-github-action@v1\n        with:\n          email: ${{ secrets.TERRAFIR_EMAIL }}\n          apiKey: ${{ secrets.TERRAFIR_API_KEY }}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsachasmart%2Fterrafir-github-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsachasmart%2Fterrafir-github-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsachasmart%2Fterrafir-github-action/lists"}