{"id":15757960,"url":"https://github.com/ahmadnassri/action-changed-files","last_synced_at":"2026-04-02T01:13:35.116Z","repository":{"id":59315038,"uuid":"535986808","full_name":"ahmadnassri/action-changed-files","owner":"ahmadnassri","description":"detect changed files in a Commit or PR","archived":false,"fork":false,"pushed_at":"2026-02-10T23:04:12.000Z","size":47,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-11T01:37:25.367Z","etag":null,"topics":["actions","changed","files"],"latest_commit_sha":null,"homepage":"","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/ahmadnassri.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["ahmadnassri"]}},"created_at":"2022-09-13T06:22:15.000Z","updated_at":"2026-02-10T23:02:10.000Z","dependencies_parsed_at":"2024-10-04T09:41:28.598Z","dependency_job_id":"c7fa5263-2f41-4c8f-aed7-ffb8ebc7f143","html_url":"https://github.com/ahmadnassri/action-changed-files","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":"ahmadnassri/template-action-composite","purl":"pkg:github/ahmadnassri/action-changed-files","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmadnassri%2Faction-changed-files","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmadnassri%2Faction-changed-files/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmadnassri%2Faction-changed-files/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmadnassri%2Faction-changed-files/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahmadnassri","download_url":"https://codeload.github.com/ahmadnassri/action-changed-files/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmadnassri%2Faction-changed-files/sbom","scorecard":{"id":171995,"data":{"date":"2025-08-11","repo":{"name":"github.com/ahmadnassri/action-changed-files","commit":"c7fe24ad91af46d9e8152b779ccfc9e1c2c1bfcf"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.8,"checks":[{"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":"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"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":"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":"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":"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/pull_request_target.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/ahmadnassri/action-changed-files/pull_request_target.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/push.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/ahmadnassri/action-changed-files/push.yml/master?enable=pin","Info:   0 out of   2 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":"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":"Token-Permissions","score":10,"reason":"GitHub workflow tokens follow principle of least privilege","details":["Warn: jobLevel 'statuses' permission set to 'write': .github/workflows/push.yml:19","Warn: jobLevel 'packages' permission set to 'write': .github/workflows/push.yml:20","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/push.yml:18","Info: topLevel permissions set to 'read-all': .github/workflows/pull_request_target.yml:9","Info: topLevel permissions set to 'read-all': .github/workflows/push.yml:11"],"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":"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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/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":-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"}}]},"last_synced_at":"2025-08-16T16:47:54.995Z","repository_id":59315038,"created_at":"2025-08-16T16:47:54.995Z","updated_at":"2025-08-16T16:47:54.995Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31293725,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T01:05:07.454Z","status":"ssl_error","status_checked_at":"2026-04-02T00:56:46.496Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["actions","changed","files"],"created_at":"2024-10-04T09:41:15.613Z","updated_at":"2026-04-02T01:13:35.094Z","avatar_url":"https://github.com/ahmadnassri.png","language":"Shell","funding_links":["https://github.com/sponsors/ahmadnassri"],"categories":[],"sub_categories":[],"readme":"# Changed Files\n\ndetect and list changed files in push \u0026 pull_requests events using `git diff \u003cpathspec\u003e`\n\n[![license][license-img]][license-url]\n[![release][release-img]][release-url]\n\n## Usage\n\n``` yaml\n# supported events\non:\n  - push\n  - pull_request\n  - pull_request_target\n\njobs:\n  job:\n    runs-on: ubuntu-latest\n\n    steps:\n      - uses: actions/checkout@v3\n        with:\n          fetch-depth: 0 # ⚠️ required for `push` event\n\n      # example 1: list all changed files\n      - id: changed-files\n        uses: ahmadnassri/action-changed-files@v1\n\n      - run: |\n          for file in ${{ steps.changed-files.outputs.files }}; do\n            echo \"$file has changed\"\n          done\n\n      - if: contains(steps.changed-files.outputs.files, 'package-lock.json')\n        run: |\n          echo \"package-lock.json has changed\"\n\n\n      # example 2: detect specific changes using git pathspec\n      - id: changed-files-specific\n        uses: ahmadnassri/action-changed-files@v1\n        with:\n          pathspec: \":(top,icase,glob,attr:!vendored)src/components/*/*.jsx\"\n\n      - if: steps.changed-files-specific.outputs.changed == 'true'\n        run: |\n          echo \"this step will only run if specific files have changed\"\n```\n\n\u003e ⚠️ when running on `push` events, a `fetch-depth` of `0` higher is required.\n\n## `push` vs `pull_request`\n\nwhen running in a `pull_request` / `pull_request_target`, the action will compare the latest commit in the PR *(`HEAD`)* against the PR base BRANCH.\n\nwhen running in a `push`, the action will compare the latest commit `HEAD` against the earliest commit `HEAD~n`, where `n` is the number of commits present in the `push` event.\n\n## Inputs\n\n| input      | required | default | description                                   |\n|------------|----------|---------|-----------------------------------------------|\n| `pathspec` | ❌       | `*`     | [pathspec][] pattern used to look for changes |\n\n\u003e ℹ️ Learn more about [advanced pathspec usage][]\n\n## Outputs\n\nThis action will output the following properties:\n\n\u003c!-- markdownlint-capture --\u003e\n\n\u003c!-- markdownlint-disable MD034 --\u003e\n\n| property  | type     | description                           | example                                              |\n|-----------|----------|---------------------------------------|------------------------------------------------------|\n| `changed` | `string` | changed flag: `true` / `false`        | `true`                                               |\n| `files`   | `string` | space-separated list of changed files | `README.md package.json package-lock.json`           |\n| `json`    | `json`   | json array of changed files           | `[\"README.md\", \"package.json\", \"package-lock.json\"]` |\n\n  [pathspec]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefpathspecapathspec\n  [advanced pathspec usage]: https://css-tricks.com/git-pathspecs-and-how-to-use-them/\n\n----\n\u003e Author: [Ahmad Nassri](https://www.ahmadnassri.com/) \u0026bull;\n\u003e Twitter: [@AhmadNassri](https://twitter.com/AhmadNassri)\n\n[license-url]: LICENSE\n[license-img]: https://badgen.net/github/license/ahmadnassri/action-changed-files\n\n[release-url]: https://github.com/ahmadnassri/action-changed-files/releases\n[release-img]: https://badgen.net/github/release/ahmadnassri/action-changed-files\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmadnassri%2Faction-changed-files","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmadnassri%2Faction-changed-files","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmadnassri%2Faction-changed-files/lists"}