{"id":15479526,"url":"https://github.com/craig-day/fetch-build-from-gcb","last_synced_at":"2026-05-01T15:36:47.948Z","repository":{"id":44830943,"uuid":"250657107","full_name":"craig-day/fetch-build-from-gcb","owner":"craig-day","description":"Github action to extract an image digest from a Google Cloud Build","archived":false,"fork":false,"pushed_at":"2022-08-18T19:24:32.000Z","size":895,"stargazers_count":0,"open_issues_count":2,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2026-02-11T17:58:48.250Z","etag":null,"topics":["action","actions","gcb","google-cloud-builder"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/craig-day.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}},"created_at":"2020-03-27T21:57:52.000Z","updated_at":"2020-03-31T21:09:20.000Z","dependencies_parsed_at":"2023-01-04T12:26:46.322Z","dependency_job_id":null,"html_url":"https://github.com/craig-day/fetch-build-from-gcb","commit_stats":{"total_commits":10,"total_committers":2,"mean_commits":5.0,"dds":0.09999999999999998,"last_synced_commit":"4e6284bf56c79e66abb7a17bbede93c9336f9a6d"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/craig-day/fetch-build-from-gcb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craig-day%2Ffetch-build-from-gcb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craig-day%2Ffetch-build-from-gcb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craig-day%2Ffetch-build-from-gcb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craig-day%2Ffetch-build-from-gcb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/craig-day","download_url":"https://codeload.github.com/craig-day/fetch-build-from-gcb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craig-day%2Ffetch-build-from-gcb/sbom","scorecard":{"id":307199,"data":{"date":"2025-08-11","repo":{"name":"github.com/craig-day/fetch-build-from-gcb","commit":"4e6284bf56c79e66abb7a17bbede93c9336f9a6d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/10 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":"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":"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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/release.yml: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":"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":"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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/craig-day/fetch-build-from-gcb/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/craig-day/fetch-build-from-gcb/release.yml/master?enable=pin","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction 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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE:0"],"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 '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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"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":"Vulnerabilities","score":0,"reason":"14 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-mfwh-5m23-j46w","Warn: Project is vulnerable to: GHSA-7r3h-m5j6-3q42","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-wgfq-7857-4jcc","Warn: Project is vulnerable to: GHSA-w7rc-rwvf-8q5r","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-92xj-mqp7-vmcj","Warn: Project is vulnerable to: GHSA-wxgw-qj99-44c2","Warn: Project is vulnerable to: GHSA-5rrq-pxf6-6jx5","Warn: Project is vulnerable to: GHSA-8fr3-hfg3-gpgp","Warn: Project is vulnerable to: GHSA-gf8q-jrpm-jvxq","Warn: Project is vulnerable to: GHSA-2r2c-g63r-vccr","Warn: Project is vulnerable to: GHSA-cfm4-qjh2-4765","Warn: Project is vulnerable to: GHSA-x4jg-mjrx-434g"],"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-17T22:22:09.343Z","repository_id":44830943,"created_at":"2025-08-17T22:22:09.343Z","updated_at":"2025-08-17T22:22:09.343Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32503199,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["action","actions","gcb","google-cloud-builder"],"created_at":"2024-10-02T04:21:47.027Z","updated_at":"2026-05-01T15:36:47.931Z","avatar_url":"https://github.com/craig-day.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fetch Build from GCB\n\n![Latest Release](https://img.shields.io/github/v/release/craig-day/fetch-build-from-gcb?label=Latest%20Release)\n\nA Github action to fetch a given build from GCB and extract the docker digest of a target image.\n\n## Inputs\n\n| Parameter                        | Description                                               | Required | Default |\n| -------------------------------- | --------------------------------------------------------- | -------- | ------- |\n| `target_image`                   | The name of the image to find the digest for              | Y        | N/A     |\n| `google_application_credentials` | Service account credentials for your Google Cloud project | Y        | N/A     |\n\n## Output\n\nThe action will automatically inspect the event payload and only set the output on when a successful\nGCB build has been found and parsed. It will however, still \"succeed\" as long as the event is valid,\nbut it will not set the `digest` output. **For this reason, it is highly recommended that you guard\nthe job with the `if` condition found in the appropriate example below.**\n\n- `digest` The SHA256 docker digest of the image.\n- `sha` The git SHA associated with the image if available.\n\n## Usage\n\nThis action uses a Google Cloud service account to fetch build information from the API.\n\n### With a repo mirrored to GCR and gets `status` GCB webhooks\n\nIf your repository is mirrored into GCR and the build information appears on your repository with\na PR status from `my-project-1234`, then you need to have your workflow response to `status` events.\n\nIf your build creates an image tagged as `my-app:{commit_sha}`, then your workflow might look like\nthis:\n\n```yaml\non: status\n\njobs:\n  find_digest:\n    runs-on: ubuntu-latest\n    if: |\n      github.event.state == 'success' \u0026\u0026\n        contains(github.event.description, 'GCB build')\n  steps:\n    - id: find_digest\n      uses: craig-day/fetch-build-from-gcb@v4\n      with:\n        target_image: my-app\n        google_application_credentials: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}\n\n    - name: Something that uses the digest\n      run: echo $IMAGE_DIGEST\n      env:\n        IMAGE_DIGEST: ${{ steps.find_digest.outputs.digest }}\n```\n\n### With a repo connected to the GCB app and gets GCB `check_run`s\n\nIf your repository is connected to the GCB app and the build information appears on your repository\nwith a PR status from `Google Cloud Build`, then you need to have your workflow response to\n`check_run` events.\n\nIf your build creates an image tagged as `fun-app:{git_tag}`, then your workflow might include steps\nthat look like this:\n\n```yaml\non:\n  check_run:\n    types:\n      - completed\n\njobs:\n  from_gcb_check_run:\n    runs-on: ubuntu-latest\n    if: |\n      github.event.check_run.app.name == 'Google Cloud Build' \u0026\u0026\n        github.event.check_run.conclusion == 'success'\n  steps:\n    - id: find_digest\n      uses: craig-day/fetch-build-from-gcb@v4\n      with:\n        target_image: fun-app\n        google_application_credentials: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}\n\n    - name: Something that uses the digest\n      run: echo $IMAGE_DIGEST\n      env:\n        IMAGE_DIGEST: ${{ steps.find_digest.outputs.digest }}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcraig-day%2Ffetch-build-from-gcb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcraig-day%2Ffetch-build-from-gcb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcraig-day%2Ffetch-build-from-gcb/lists"}