{"id":41653726,"url":"https://github.com/capralifecycle/liflig-cdk","last_synced_at":"2026-05-23T08:04:42.471Z","repository":{"id":37339845,"uuid":"263178418","full_name":"capralifecycle/liflig-cdk","owner":"capralifecycle","description":"AWS CDK construct library for internal use in Liflig.","archived":false,"fork":false,"pushed_at":"2026-05-20T11:56:34.000Z","size":13385,"stargazers_count":5,"open_issues_count":5,"forks_count":2,"subscribers_count":12,"default_branch":"master","last_synced_at":"2026-05-20T16:11:05.956Z","etag":null,"topics":["cdk"],"latest_commit_sha":null,"homepage":"https://capralifecycle.github.io/liflig-cdk/","language":"TypeScript","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/capralifecycle.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,"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}},"created_at":"2020-05-11T23:04:56.000Z","updated_at":"2026-05-20T11:54:16.000Z","dependencies_parsed_at":"2026-03-07T21:00:57.195Z","dependency_job_id":"b71a8dc5-9f77-4241-9a96-bbfa3bc3c871","html_url":"https://github.com/capralifecycle/liflig-cdk","commit_stats":{"total_commits":1222,"total_committers":10,"mean_commits":122.2,"dds":0.5090016366612111,"last_synced_commit":"86473203bff72ef0881eada4d0a166260b640fe4"},"previous_names":[],"tags_count":390,"template":false,"template_full_name":null,"purl":"pkg:github/capralifecycle/liflig-cdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capralifecycle%2Fliflig-cdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capralifecycle%2Fliflig-cdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capralifecycle%2Fliflig-cdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capralifecycle%2Fliflig-cdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/capralifecycle","download_url":"https://codeload.github.com/capralifecycle/liflig-cdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capralifecycle%2Fliflig-cdk/sbom","scorecard":{"id":265247,"data":{"date":"2025-08-11","repo":{"name":"github.com/capralifecycle/liflig-cdk","commit":"7689cdaed1ef56349e8ca1abbbc9f704671bda01"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":6.4,"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":"Maintained","score":10,"reason":"30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/15 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":"Token-Permissions","score":9,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: jobLevel 'contents' permission set to 'write': .github/workflows/ci.yml:21","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/update-snapshots.yml:23","Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: topLevel 'contents' permission set to 'read': .github/workflows/update-documentation.yml:12","Warn: no topLevel permission defined: .github/workflows/update-snapshots.yml:1"],"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":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":"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":"Pinned-Dependencies","score":10,"reason":"all dependencies are pinned","details":["Info:  11 out of  11 GitHub-owned GitHubAction dependencies pinned","Info:   2 out of   2 third-party GitHubAction dependencies pinned","Info:   1 out of   1 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":"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":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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 17 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":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"}}]},"last_synced_at":"2025-08-17T11:51:57.689Z","repository_id":37339845,"created_at":"2025-08-17T11:51:57.689Z","updated_at":"2025-08-17T11:51:57.689Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33387661,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T04:15:53.637Z","status":"ssl_error","status_checked_at":"2026-05-23T04:15:53.242Z","response_time":53,"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":["cdk"],"created_at":"2026-01-24T16:19:31.214Z","updated_at":"2026-05-23T08:04:42.452Z","avatar_url":"https://github.com/capralifecycle.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Liflig CDK\n\nThis is a collection of reusable constructs and patterns for\nCDK setups, for use within Liflig.\n\n## State of repository and package\n\nWe do not expect others to depend on this, and as such will not be following semantic versioning strictly.\nThere will be breaking changes across both minor and patch releases, as we will be coordinating changes internally.\n\nCDK has some major issues for 3rd party library authors which\nare not yet resolved. Some relevant information:\n\n- \u003chttps://github.com/aws/aws-cdk-rfcs/blob/master/text/0006-monolothic-packaging.md\u003e\n\n## Development\n\nProject commands are defined using `Make`. Examples:\n\n```sh\n# Primary commands\n$ make         # runs '$ make build'\n$ make build   # build project, apply lint and formatting fixes, update snapshots\n$ make verify  # verify project, ensure lint, formatting and snapshots are up-to-date\n\n# Misc commands\n$ make lint      # lint code\n$ make fmt       # reformat code\n$ make snapshots # regenerate snapshots\n```\n\nFor a complete list of commands, refer to the `Makefile`.\n\n## Testing library changes before releasing\n\n### Alternative 1: Install liflig-cdk from tarball\n\n1. Assemble artifact, which emits a tarball\n\n   ```bash\n   npm pack\n   ```\n\n2. Install the library in an application from a tarball\n\n   ```bash\n   npm install /path/to/liflig-cdk/liflig-cdk-0.0.0-development.tgz\n   ```\n\n### Alternative 2: Install liflig-cdk from a Git branch\n\n1. Navigate to the project where you want to test the changes\n\n   ```bash\n   cd /path/to/other/project\n   ```\n\n2. Install the library in an application from a Git branch\n\n   ```bash\n   npm install github:capralifecycle/liflig-cdk#remove-del-and-glob-packages\n   ```\n\nNote: `npm link` cannot be used, since it will lead to multiple\ndeclarations of the same classes from CDK, breaking the `instanceof`\noperator.\n\n## Verifying Lambda function changes\n\nWhen updating lambda function runtimes or handler code, we sometimes need to verify that the lambda runs correctly aside from being syntactically correct, such as ensuring imports in handler code are valid for the specified runtime, that required environment variables exist, and so on.\n\nSome specific approaches to validating specific lambda functions in this project:\n\n- `src/alarms/slack-alarm.ts:slackLambda`\n  - Trigger: CloudWatch alarm state change\n  - Inspect: Slack notification\n  - Desc: The function has an associated SNS Topic, which is configured as the action for a CloudWatch Alarm. To verify the function, we manually put the alarm into the ALARM state using the AWS CLI (`aws cloudwatch set-alarm-state --state-value \"ALARM\" ...`), which posts to the SNS topic and triggers the function. We can then verify that the function executes correctly by checking the Slack channel for the alarm notification, as well as the function logs in CloudWatch.\n- `src/cdk-pipelines/liflig-cdk-pipeline.ts:prepareCdkSourceFn`\n  - Trigger: CodePipeline deployment\n  - Inspect: CloudWatch logs\n  - Desc: This function is triggered by CodePipeline during deployment. To verify the function, we can observe the CodePipeline execution, and inspect the CloudWatch logs of the executed `PrepareCdkSource` step.\n- `src/cdk-pipelines/slack-notification.ts:reportFunction`\n  - Trigger: CodePipeline deployment failure\n  - Inspect: Slack notification, CloudWatch logs\n  - Desc: This function is triggered by CodePipeline during deployment when the pipeline state changes (ok to failed, and so on). To verify the function, we can introduce a failure in the pipeline (for example, by misconfiguring a build step), and observe the Slack notification sent by the function, as well as the function logs in CloudWatch.\n\n## Contributing\n\nThis project accepts contributions. To get started, see the [Contributing Guidelines](./CONTRIBUTING.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapralifecycle%2Fliflig-cdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcapralifecycle%2Fliflig-cdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapralifecycle%2Fliflig-cdk/lists"}