{"id":19293161,"url":"https://github.com/jweyrich/cloudfront-invalidate-dist","last_synced_at":"2026-02-27T04:01:32.751Z","repository":{"id":40938941,"uuid":"157554237","full_name":"jweyrich/cloudfront-invalidate-dist","owner":"jweyrich","description":"☁ Make your AWS CodePipeline invoke this Lambda function to invalidate a CloudFront distribution.","archived":false,"fork":false,"pushed_at":"2023-04-10T20:10:25.000Z","size":77,"stargazers_count":20,"open_issues_count":1,"forks_count":13,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-13T23:38:53.857Z","etag":null,"topics":["aws","aws-lambda","cloudfront","cloudfront-distributions","codepipeline","invalidation","serverless"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/cloudfront-invalidate-dist","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jweyrich.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}},"created_at":"2018-11-14T13:38:58.000Z","updated_at":"2024-06-05T09:42:10.000Z","dependencies_parsed_at":"2024-11-09T22:34:21.590Z","dependency_job_id":"424befb2-afd5-4142-b116-7489b50e5957","html_url":"https://github.com/jweyrich/cloudfront-invalidate-dist","commit_stats":{"total_commits":16,"total_committers":4,"mean_commits":4.0,"dds":0.4375,"last_synced_commit":"27fbeaf7adb26649868b199e45a4106860d37074"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jweyrich/cloudfront-invalidate-dist","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jweyrich%2Fcloudfront-invalidate-dist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jweyrich%2Fcloudfront-invalidate-dist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jweyrich%2Fcloudfront-invalidate-dist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jweyrich%2Fcloudfront-invalidate-dist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jweyrich","download_url":"https://codeload.github.com/jweyrich/cloudfront-invalidate-dist/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jweyrich%2Fcloudfront-invalidate-dist/sbom","scorecard":{"id":545212,"data":{"date":"2025-08-11","repo":{"name":"github.com/jweyrich/cloudfront-invalidate-dist","commit":"27fbeaf7adb26649868b199e45a4106860d37074"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"Code-Review","score":0,"reason":"Found 1/14 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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"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":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-776f-qx25-q3cc"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 10 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"}}]},"last_synced_at":"2025-08-20T09:19:34.335Z","repository_id":40938941,"created_at":"2025-08-20T09:19:34.335Z","updated_at":"2025-08-20T09:19:34.335Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29884515,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T23:51:21.483Z","status":"online","status_checked_at":"2026-02-27T02:00:06.759Z","response_time":57,"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":["aws","aws-lambda","cloudfront","cloudfront-distributions","codepipeline","invalidation","serverless"],"created_at":"2024-11-09T22:34:12.514Z","updated_at":"2026-02-27T04:01:32.734Z","avatar_url":"https://github.com/jweyrich.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"CloudFront Invalidate Distribution\n\nMake your AWS CodePipeline invoke this Lambda function to invalidate a CloudFront distribution.\n\n### Prerequisites\n\nInstall the [Serverless Framework](https://serverless.com/) if you don't have it.\n\n    npm install -g serverless\n\n### Deploy\n\n    git clone https://github.com/jweyrich/cloudfront-invalidate-dist.git\n    cd cloudfront-invalidate-dist\n    serverless deploy [--aws-profile yourProfile]\n\n### Configure your CodePipeline\n\n1. Open your CodePipeline\n2. Create a new stage\n3. Add a new action\n4. In 'Action Provider' select 'AWS Lambda'\n5. In 'Function name' select the deployed function\n6. In 'User parameters' specify the desired CloudFront distribution and paths to be invalidated. Example:\n\n    `{ \"distributionId\": \"FP7AWS1WBJLKSX\", \"objectPaths\": [ \"/*\" ] }`\n\n7. Save the action\n8. Test\n\n### Examples of User Parameters\n\n    { \"distributionId\": \"FP7AWS1WBJLKSX\", \"objectPaths\": [ \"/*\" ] }\n    { \"distributionId\": \"FP7AWS1WBJLKSX\", \"objectPaths\": [ \"/foo\", \"/bar/baz.jpg\", \"/bar/baz/*\" ] }\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjweyrich%2Fcloudfront-invalidate-dist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjweyrich%2Fcloudfront-invalidate-dist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjweyrich%2Fcloudfront-invalidate-dist/lists"}