{"id":21847565,"url":"https://github.com/scribd/amazon-ecs-service-action","last_synced_at":"2026-05-05T11:01:51.942Z","repository":{"id":36953394,"uuid":"397740867","full_name":"scribd/amazon-ecs-service-action","owner":"scribd","description":"Amazon ECS Service Action for GitHub Actions","archived":false,"fork":false,"pushed_at":"2026-04-13T10:23:17.000Z","size":2798,"stargazers_count":4,"open_issues_count":4,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-28T02:12:33.849Z","etag":null,"topics":["aws","ecs","github-actions"],"latest_commit_sha":null,"homepage":"https://github.com/scribd/amazon-ecs-service-action","language":"JavaScript","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/scribd.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-18T21:37:38.000Z","updated_at":"2026-03-24T11:48:06.000Z","dependencies_parsed_at":"2024-11-28T00:45:53.784Z","dependency_job_id":null,"html_url":"https://github.com/scribd/amazon-ecs-service-action","commit_stats":{"total_commits":185,"total_committers":3,"mean_commits":"61.666666666666664","dds":0.5621621621621622,"last_synced_commit":"1565a056bf2f6895a51f1caecff58914f1eafe80"},"previous_names":[],"tags_count":101,"template":false,"template_full_name":null,"purl":"pkg:github/scribd/amazon-ecs-service-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scribd%2Famazon-ecs-service-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scribd%2Famazon-ecs-service-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scribd%2Famazon-ecs-service-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scribd%2Famazon-ecs-service-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scribd","download_url":"https://codeload.github.com/scribd/amazon-ecs-service-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scribd%2Famazon-ecs-service-action/sbom","scorecard":{"id":806278,"data":{"date":"2025-08-11","repo":{"name":"github.com/scribd/amazon-ecs-service-action","commit":"ded92c48db4a03dd8fe1560e2704c86a77523e99"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"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":"Code-Review","score":0,"reason":"Found 1/23 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/rebase-on-push-to-main.yml:1","Warn: no topLevel permission defined: .github/workflows/release-on-merge.yml:1","Warn: no topLevel permission defined: .github/workflows/test-on-pull-request.yml:1","Warn: no topLevel permission defined: .github/workflows/validate-pr-title.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":"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":"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":"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/rebase-on-push-to-main.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/scribd/amazon-ecs-service-action/rebase-on-push-to-main.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-on-merge.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/scribd/amazon-ecs-service-action/release-on-merge.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release-on-merge.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/scribd/amazon-ecs-service-action/release-on-merge.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-on-merge.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/scribd/amazon-ecs-service-action/release-on-merge.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release-on-merge.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/scribd/amazon-ecs-service-action/release-on-merge.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test-on-pull-request.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/scribd/amazon-ecs-service-action/test-on-pull-request.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test-on-pull-request.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/scribd/amazon-ecs-service-action/test-on-pull-request.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test-on-pull-request.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/scribd/amazon-ecs-service-action/test-on-pull-request.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test-on-pull-request.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/scribd/amazon-ecs-service-action/test-on-pull-request.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/validate-pr-title.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/scribd/amazon-ecs-service-action/validate-pr-title.yml/main?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   6 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":"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":"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":"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":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/scribd/.github/SECURITY.md:1","Info: Found linked content: github.com/scribd/.github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/scribd/.github/SECURITY.md:1","Info: Found text in security policy: github.com/scribd/.github/SECURITY.md:1"],"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":"Branch-Protection","score":1,"reason":"branch protection is not maximal on development and all release branches","details":["Warn: branch protection not enabled for branch 'alpha'","Info: 'allow deletion' disabled on branch 'main'","Info: 'force pushes' disabled on branch 'main'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'main'","Warn: 'stale review dismissal' is disabled on branch 'main'","Warn: branch 'main' does not require approvers","Warn: codeowners review is not required on branch 'main'","Warn: 'last push approval' is disabled on branch 'main'","Warn: no status checks found to merge onto branch 'main'","Info: PRs are required in order to make changes on branch 'main'"],"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 8 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":1,"reason":"9 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-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-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-f9xv-q969-pqx4"],"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-23T11:50:41.822Z","repository_id":36953394,"created_at":"2025-08-23T11:50:41.822Z","updated_at":"2025-08-23T11:50:41.822Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32646203,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"online","status_checked_at":"2026-05-05T02:00:06.033Z","response_time":54,"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","ecs","github-actions"],"created_at":"2024-11-27T23:18:38.805Z","updated_at":"2026-05-05T11:01:51.841Z","avatar_url":"https://github.com/scribd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Amazon ECS Service Action for GitHub Actions\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\nCreates an Amazon ECS Service\n\n**Table of Contents**\n\n\u003c!-- toc --\u003e\n\n- [Amazon ECS Service Action for GitHub Actions](#amazon-ecs-service-action-for-github-actions)\n- [Usage](#usage)\n  - [Service Creation / Update](#service-creation--update)\n  - [Service Deletion](#service-deletion)\n- [Credentials and Region](#credentials-and-region)\n- [Permissions](#permissions)\n- [Troubleshooting](#troubleshooting)\n\n\u003c!-- tocstop --\u003e\n\n## Usage\n\n### Service Creation / Update\n\nCreate or update an ECS Service.\n\nparameter              | description                                 | default\n-----------------------|---------------------------------------------|----------\n`spec` and `spec-file` | Specify either a `spec-file` as a filename, a `spec` as a JSON string, or both. See notes below and https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ecs/interfaces/createservicecommandinput.html for information about how to craft a valid `spec` or `spec-file`. | {}\n`force-new-deployment` | Whether to force a new deployment when updating the service as a boolean. | `false`\n`wait-until-deployment-complete` | Whether to wait for the deployment to complete. | `false`\n\n\n```yaml\n\n- name: Register Task Definition\n  id: task-definition\n  uses: aws-actions/amazon-ecs-deploy-task-definition@v1\n  with:\n    task-definition: some-task-definition.json\n\n- name: ECS Service\n  uses: scribd/amazon-ecs-service-action@v1\n  with:\n    spec-file: examples/service-spec.json\n    spec: |\n      {\n        \"taskDefinition\": \"${{ steps.task-definition.outputs.task-definition-arn }}\"\n      }\n    force-new-deployment: false\n    wait-until-deployment-complete: true\n\n```\n\n#### **A note on using both `spec-file` and `spec`**:\n\nThis merge functionality is intended to provide very basic addition of simple elements to the spec-file. Please try to avoid using this effect for complicated transformations.\n\n```\n// The combined-spec-data is sent to the AWS API.\n  spec-file + spec =\u003e combined-spec-data\n// The algorithm naiively replaces the top level keys in the combined spec.\n  {\"a\": \"b\"} + {\"a\": \"c\"} =\u003e {\"a\": \"c\"}\n// If you add a key, no problem.\n  {\"a\": \"b\"} + {\"c\": \"d\"} =\u003e {\"a\": \"b\", \"c\": \"d\"}\n// If you change an element in a lower level key, data is lost. Note how \"b\" is lost.\n  {\"a\": {\"b\": \"c\", \"d\": \"e\"}} + {\"a\": {\"d\": \"f\"}} =\u003e {\"a\": {\"d\": \"f\"}}\n// If you wish to change an element in a lower level key, recreate the other elements.\n  {\"a\": {\"b\": \"c\", \"d\": \"e\"}} + {\"a\": {\"b\": \"c\", \"d\": \"f\"}} =\u003e {\"a\": {\"b\": \"c\", \"d\": \"f\"}}\n// Anything more complicated than this is not supported.\n```\n\n### Service Deletion\n\nThe minimum values necessary to delete a service are the cluster name or arn, and the serviceName. You can also specify the same create spec, and the action will convert the parameters automatically.\n\nparameter              | description                                 | default\n-----------------------|---------------------------------------------|----------\n`spec` and `spec-file` | The bare minimum is `{\"cluster\": \"my-cluster\", \"serviceName\": \"my-service\"}`  | {}\n`action` | Whether to `create` or `delete` the service | `create`\n`force-delete` | If true, allows you to delete a service even if it has not been scaled down to zero tasks. It is only necessary to use this if the service is using the REPLICA scheduling strategy. | `false`\n\n\n```yaml\n\n- name: Delete ECS Service\n  uses: scribd/amazon-ecs-service-action@v1\n  with:\n    spec: |\n      {\"cluster\": \"my-cluster\", \"serviceName\": \"my-service\"}\n    action: delete\n    force-delete: false\n\n\n// Or just recycle the spec-file from the create-side. \n\n- name: Delete ECS Service\n  uses: scribd/amazon-ecs-service-action@v1\n  with:\n    spec-file: examples/service-spec.json\n    action: delete\n    force-delete: false\n```\n\nSee [action.yml](action.yml) for more information on this action's inputs and outputs.\n\n\n## Credentials and Region\n\nThis action relies on the [default behavior of the AWS SDK for Javascript](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/setting-credentials-node.html) to determine AWS credentials and region.\nUse [the `aws-actions/configure-aws-credentials` action](https://github.com/aws-actions/configure-aws-credentials) to configure the GitHub Actions environment with environment variables containing AWS credentials and your desired region.\n\nWe recommend following [Amazon IAM best practices](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html) for the AWS credentials used in GitHub Actions workflows, including:\n* Do not store credentials in your repository's code.  You may use [GitHub Actions secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets) to store credentials and redact credentials from GitHub Actions workflow logs.\n* [Create an individual IAM user](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#create-iam-users) with an access key for use in GitHub Actions workflows, preferably one per repository. Do not use the AWS account root user access key.\n* [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege) to the credentials used in GitHub Actions workflows.  Grant only the permissions required to perform the actions in your GitHub Actions workflows.  See the Permissions section below for the permissions required by this action.\n* [Rotate the credentials](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#rotate-credentials) used in GitHub Actions workflows regularly.\n* [Monitor the activity](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#keep-a-log) of the credentials used in GitHub Actions workflows.\n\n## Permissions\n\nThis action requires the following minimum set of permissions:\n\n```json\n{\n  \"Version\":\"2012-10-17\",\n  \"Statement\":[\n    {\n      \"Sid\":\"DeployService\",\n      \"Effect\":\"Allow\",\n      \"Action\":[\n        \"ecs:UpdateService\",\n        \"ecs:DescribeServices\",\n        \"ecs:DeleteService\",\n        \"ecs:CreateService\",\n        \"ecs:ListTasks\"\n      ],\n      \"Resource\":[\n        \"arn:aws:ecs:us-east-1:1234567890:mesh/my-mesh/virtualServicer/my-virtual-servicer/service/my-service\"\n      ]\n    },\n    {\n      \"Sid\":\"ListTasks\",\n      \"Effect\":\"Allow\",\n      \"Action\":[\n        \"ecs:ListTasks\",\n        \"ecs:DescribeTasks\"\n      ],\n      \"Resource\": \"*\"\n    }\n  ]\n}\n```\n\n\n## Troubleshooting\n\nThis action emits debug logs to help troubleshoot deployment failures.  To see the debug logs, create a secret named `ACTIONS_STEP_DEBUG` with value `true` in your repository.\n\nTo run this action from your workstation, you have to take into account the following bug: BASH doesn't think dashes are valid in environment variables, but Node does. You should therefore supply your environment variables with the `env` command.\n\nPlease include output from the following commands when submitting issues, it'll help greatly! Don't forget to redact any sensitive data from your submission.\n\nSee this example:\n\n```bash\n❯  env \"ACTIONS_STEP_DEBUG=true\" \"GITHUB_WORKSPACE=$(pwd)\" 'AWS_REGION=us-east-1' 'INPUT_SPEC={\"serviceName\": \"my-service\"}' node  index.js\n```\n\n# Development\n\nReleases are cut using [semantic-release](https://github.com/semantic-release/semantic-release).\n\nPlease write commit messages following [Angular commit guidelines](https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#-git-commit-guidelines)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscribd%2Famazon-ecs-service-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscribd%2Famazon-ecs-service-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscribd%2Famazon-ecs-service-action/lists"}