{"id":29551348,"url":"https://github.com/doximity/gh-action-callback-list-files","last_synced_at":"2025-10-04T00:15:55.779Z","repository":{"id":69726482,"uuid":"476484041","full_name":"doximity/gh-action-callback-list-files","owner":"doximity","description":"Github action for running a callback after pulling a list of filenames","archived":false,"fork":false,"pushed_at":"2025-09-12T11:44:20.000Z","size":11117,"stargazers_count":1,"open_issues_count":7,"forks_count":1,"subscribers_count":57,"default_branch":"master","last_synced_at":"2025-09-16T22:51:29.704Z","etag":null,"topics":["keep"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/doximity.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-31T21:27:42.000Z","updated_at":"2025-06-23T16:37:42.000Z","dependencies_parsed_at":"2023-03-13T20:24:55.327Z","dependency_job_id":null,"html_url":"https://github.com/doximity/gh-action-callback-list-files","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/doximity/gh-action-callback-list-files","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doximity%2Fgh-action-callback-list-files","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doximity%2Fgh-action-callback-list-files/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doximity%2Fgh-action-callback-list-files/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doximity%2Fgh-action-callback-list-files/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doximity","download_url":"https://codeload.github.com/doximity/gh-action-callback-list-files/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doximity%2Fgh-action-callback-list-files/sbom","scorecard":{"id":354035,"data":{"date":"2025-08-11","repo":{"name":"github.com/doximity/gh-action-callback-list-files","commit":"07b2f2f1765bf2c31ab2bb3b86433cb1082e6450"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"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":"Code-Review","score":10,"reason":"all changesets reviewed","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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'contents' permission set to 'read': .github/workflows/test_action.yml:7","Info: jobLevel 'pull-requests' permission set to 'read': .github/workflows/test_action.yml:8","Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/test_action.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":"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":"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/ci.yml:7: update your workflow using https://app.stepsecurity.io/secureworkflow/doximity/gh-action-callback-list-files/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:8: update your workflow using https://app.stepsecurity.io/secureworkflow/doximity/gh-action-callback-list-files/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test_action.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/doximity/gh-action-callback-list-files/test_action.yml/master?enable=pin","Warn: npmCommand not pinned by hash: scripts/dist.sh:4","Warn: npmCommand not pinned by hash: .github/workflows/ci.yml:12","Info:   0 out of   3 GitHub-owned GitHubAction 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/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: Apache License 2.0: 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":"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":"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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"16 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"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-18T09:06:07.768Z","repository_id":69726482,"created_at":"2025-08-18T09:06:07.768Z","updated_at":"2025-08-18T09:06:07.768Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278245773,"owners_count":25955098,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-03T02:00:06.070Z","response_time":53,"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":["keep"],"created_at":"2025-07-18T04:05:44.892Z","updated_at":"2025-10-04T00:15:55.741Z","avatar_url":"https://github.com/doximity.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Run callback on list of filenames\n\nGithub action for running a callback after pulling the list of filenames belonging to either a Git REF (SHA1, tag or\nbranch) or a pull request number.\n\n# Usage\n```yaml\n- uses: doximity/gh-action-callback-list-files@v1.0.0\n  with:\n    # Repository name with owner. For example, doximity/rake-ui\n    # Default: ${{ github.repository }}\n    repository: ''\n\n    # If using a PAT make sure to give it the \"repo\" scope.\n    # If using GITHUB_TOKEN make sure it's given the following permissions:\n    # contents: read\n    # pull-requests: read\n    #\n    # See https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token\n    #\n    # Default: ${{ github.token }}\n    token: ''\n\n    # The pull request number to pull the list of filenames from.\n    # When using this option you must not specify `ref`.\n    # NOTE: includes a maximum of 100 files.\n    pr_number: ''\n\n    # The branch, tag or SHA1 to pull the list of filenames from.\n    # When using this option you must not specify `pr_number`.\n    # NOTE: includes a maximum of 100 files.\n    ref: ''\n\n    # The function that will be passed a list of filenames and executed afterwards.\n    #\n    # It receives only one parameter, filenamesList, an array of filename strings\n    # which you can reference from your function's body.\n    #\n    # The return of your function is set as the `callback_return` output of this\n    # action, allowing you to reference that return value from other steps in your workflow.\n    #\n    # SECURITY WARNING: make sure you only reference trusted inputs from within the callback\n    # below. Because the code is `eval`'d this can pose a code injection risk if misused.\n    # Read more:\n    # https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#understanding-the-risk-of-script-injections\n    #\n    # Default: return filenamesList\n    callback: ''\n```\n# Scenarios\n- [List all filenames for a pull request](#List-all-filenames-for-a-pull-request)\n- [List all filenames for master HEAD](#List-all-filenames-for-master-head)\n- [Use action's output from another step in a workflow](#Use-actions-output-from-another-step-in-a-workflow)\n\n## List all filenames for a pull request\n\n```yaml\n- uses: doximity/gh-action-callback-list-files@v1.0.0\n  with:\n    repository: owner/repo\n    pr_number: 250\n```\n\n## List all filenames for master HEAD\n\n```yaml\n- uses: doximity/gh-action-callback-list-files@v1.0.0\n  with:\n    repository: owner/repo\n    ref: master\n```\n\n## Use action's output from another step in a workflow\n\n```yaml\n- uses: doximity/gh-action-callback-list-files@v1.0.0\n  id: check-for-graphql-changes\n  with:\n    repository: owner/repo\n    pr_number: 200\n    callback: |\n      return filenamesList.some((elem) =\u003e { return elem.match(/graphql/) })\n- name: Run this step only if GraphQL changes are detected\n  if: ${{ steps.check-for-graphql-changes.outputs.callback_return == 'true' }}\n  run: |\n    echo \"This PR includes GraphQL changes\"\n```\n\n# Contributing\n\n1. Fork it and `git clone` it into your environment\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Run `npm install` to install dependencies\n4. Make your changes\n5. Ensure `npm run test` and `npm run lint` look good\n6. Run `npm run dist` and commit the artifact\n7. Create a Pull Request\n8. Sign the CLA if you haven't yet. See [CONTRIBUTING](./CONTRIBUTING.md)\n\n# Test automation\n\nThe behavior for this GH action is verified by two layers of testing:\n- Unit: `npm run test` can be run locally and is also run on every push\nto a branch. Unit test coverage is a bit limited at the moment so contributions to\nimprove it are more than welcome!\n- E2E: The actual action runs on every push to a branch which works as an E2E smoke test.\nSee [this workflow file](./.github/workflows/test_action.yml) for details.\n\n# License\nThe gem is available as open source under the terms of the [Apache 2.0 License](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoximity%2Fgh-action-callback-list-files","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoximity%2Fgh-action-callback-list-files","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoximity%2Fgh-action-callback-list-files/lists"}