{"id":43599912,"url":"https://github.com/rluisr/ecssc","last_synced_at":"2026-02-04T05:48:24.064Z","repository":{"id":37074350,"uuid":"320871629","full_name":"rluisr/ecssc","owner":"rluisr","description":"Monitoring the ECS task event","archived":false,"fork":false,"pushed_at":"2023-03-03T20:57:36.000Z","size":47,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-21T01:39:24.619Z","etag":null,"topics":["aws","ecs","ecs-event","ecs-service","ecs-task","eventbridge","lambda"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rluisr.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":"2020-12-12T16:17:43.000Z","updated_at":"2023-01-02T12:01:30.000Z","dependencies_parsed_at":"2024-06-21T00:32:48.784Z","dependency_job_id":null,"html_url":"https://github.com/rluisr/ecssc","commit_stats":{"total_commits":32,"total_committers":3,"mean_commits":"10.666666666666666","dds":0.34375,"last_synced_commit":"dee789bc66dac094d604218739a64acbe68f79da"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/rluisr/ecssc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rluisr%2Fecssc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rluisr%2Fecssc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rluisr%2Fecssc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rluisr%2Fecssc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rluisr","download_url":"https://codeload.github.com/rluisr/ecssc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rluisr%2Fecssc/sbom","scorecard":{"id":778692,"data":{"date":"2025-08-11","repo":{"name":"github.com/rluisr/ecssc","commit":"dee789bc66dac094d604218739a64acbe68f79da"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/17 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":"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":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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Do What The F*ck You Want To Public 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":"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/release.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/rluisr/ecssc/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/rluisr/ecssc/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/rluisr/ecssc/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/rluisr/ecssc/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/rluisr/ecssc/release.yml/master?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:1","Warn: containerImage not pinned by hash: Dockerfile:9: pin your Docker image by updating public.ecr.aws/lambda/provided:al2 to public.ecr.aws/lambda/provided:al2@sha256:729b8ec239985755cb4526ee25a51253976ba7148a2caa9833d872a361203662","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   4 third-party GitHubAction dependencies pinned","Info:   0 out of   2 containerImage 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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 22 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":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0635","Warn: Project is vulnerable to: GO-2022-0646","Warn: Project is vulnerable to: GO-2023-1941 / GHSA-4r8x-2p26-976p"],"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-23T04:20:17.481Z","repository_id":37074350,"created_at":"2025-08-23T04:20:17.481Z","updated_at":"2025-08-23T04:20:17.481Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29071916,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-04T03:31:03.593Z","status":"ssl_error","status_checked_at":"2026-02-04T03:29:50.742Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["aws","ecs","ecs-event","ecs-service","ecs-task","eventbridge","lambda"],"created_at":"2026-02-04T05:48:23.534Z","updated_at":"2026-02-04T05:48:24.059Z","avatar_url":"https://github.com/rluisr.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"ecssc\n======\necssc(ECS State Check) is a Lambda function for notification to Slack if the ECS task event is changed.\n\n![image](https://f.easyuploader.app/eu-prd/upload/20201222222339_667333354c6575474e73706277615335.png)\n\nDownload\n---------\nSee [GitHub Container Registry](https://github.com/users/rluisr/packages/container/ecssc/versions)\n\nInstallation\n-------------\necssc is a Lambda function of EventBridge event target.\n\n![image](https://f.easyuploader.app/eu-prd/upload/20201213011250_374537644f5a66646969.png)\n\n**Copy the container image to your ECR repository.**  \nThe Lambda does not support third-party container registry.\n\nThis is an example for setting up EventBridge and Lambda with Terraform.\n\nEventBridge:\n```hcl\nresource \"aws_cloudwatch_event_bus\" \"ecs-state-check\" {\n  name = \"ecs-state-check\"\n}\n\nresource \"aws_cloudwatch_event_rule\" \"ecs-state-check\" {\n  name        = \"ecs-state-check\"\n  event_pattern = \u003c\u003cEOF\n{\n  \"source\": [\n    \"aws.ecs\"\n  ],\n  \"detail-type\": [\n    \"ECS Task State Change\",\n    \"ECS Container Instance State Change\"\n  ]\n}\nEOF\n}\n```\n\nLambda:\n```hcl\n# ECR\nresource \"aws_ecr_repository\" \"foo\" {\n  name                 = \"ecs-state-check\"\n  image_tag_mutability = \"MUTABLE\"\n\n  image_scanning_configuration {\n    scan_on_push = false\n  }\n}\n\n# CloudWatch Log Group\nresource \"aws_cloudwatch_log_group\" \"ecs-state-check\" {\n  name              = \"/aws/lambda/ecs-state-check\"\n  retention_in_days = 14\n}\n\n# IAM role for Lambda\nmodule \"ecs-state-check_lambda_execution_role\" {\n  source  = \"baikonur-oss/iam-nofile/aws\"\n  version = \"v2.0.0\"\n\n  type = \"lambda\"\n  name = \"ecs-state-check\"\n\n  policy_json = \u003c\u003cEOF\n{\n  \"Version\": \"2012-10-17\",\n  \"Statement\": [\n    {\n      \"Effect\": \"Allow\",\n      \"Action\": [\n        \"logs:CreateLogStream\",\n        \"logs:PutLogEvents\"\n      ],\n      \"Resource\": \"*\"\n    },\n    {\n      \"Effect\": \"Allow\",\n      \"Action\": [\n        \"ssm:GetParametersByPath\"\n      ],\n      \"Resource\": \"arn:aws:ssm:${data.aws_region.region.name}:${data.aws_caller_identity.caller.account_id}:parameter${var.parameter_store_path}\"\n    },\n    {\n      \"Effect\": \"Allow\",\n      \"Action\": [\n        \"ecs:Describe*\"\n      ],\n      \"Resource\": \"*\"\n    }\n  ]\n}\nEOF\n}\n\n# Lambda\nresource \"aws_lambda_function\" \"ecs-state-check\" {\n  function_name = \"ecs-state-check\"\n  image_uri = \"to your ecr image uri\"\n  package_type = \"Image\"\n  role = module.ecs-state-check_lambda_execution_role.arn\n}\n\n# Trigger\nresource \"aws_lambda_permission\" \"ecs-state-check\" {\n  action        = \"lambda:InvokeFunction\"\n  function_name = aws_lambda_function.ecs-state-check.function_name\n  principal     = \"events.amazonaws.com\"\n  source_arn    = \"arn:aws:events:ap-northeast-1:111111111111:rule/ecs-state-check\"\n}\n```\n\nEnvironment Variables\n----------------------\n| Name                         | Description                                        | Required |\n|------------------------------|----------------------------------------------------|----------|\n| ECSSC_DEBUG                  | Show debug message. default: false                 | no       |\n| ECSSC_IGNORE_CONTAINER_NAMES | Skip container names. Support array like app1,app2 | no       |\n| ECSSC_SLACK_CHANNEL_NAME     | Slack channel name like '#test'                    | yes      |\n| ECSSC_SLACK_WEBHOOK_URL      | Slack incoming webhook URL                         | yes      |\n| ECSSC_SLACK_USER_NAME        | Slack Username default 'ecs-state-check'           | no       |\n| ECSSC_SLACK_ICON_URL         | Slack icon URL                                     | no       |\n| ECSSC_SLACK_ICON_EMOJI       | Slack icon emoji. default ':japanese_goblin:'      | no       |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frluisr%2Fecssc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frluisr%2Fecssc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frluisr%2Fecssc/lists"}