{"id":28033000,"url":"https://github.com/peterkimzz/aws-ssm-send-command","last_synced_at":"2025-10-15T12:36:54.644Z","repository":{"id":40709847,"uuid":"249876027","full_name":"peterkimzz/aws-ssm-send-command","owner":"peterkimzz","description":"Github Actions for using AWS SSM Send-Command","archived":false,"fork":false,"pushed_at":"2023-09-26T05:31:28.000Z","size":22153,"stargazers_count":68,"open_issues_count":12,"forks_count":33,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-25T10:01:57.251Z","etag":null,"topics":["actions"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/peterkimzz.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-03-25T03:15:55.000Z","updated_at":"2025-06-01T03:18:17.000Z","dependencies_parsed_at":"2024-06-18T17:11:56.044Z","dependency_job_id":null,"html_url":"https://github.com/peterkimzz/aws-ssm-send-command","commit_stats":{"total_commits":76,"total_committers":4,"mean_commits":19.0,"dds":0.09210526315789469,"last_synced_commit":"931e3645de26eef6b29f323f1c4c7dee89be5665"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/peterkimzz/aws-ssm-send-command","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterkimzz%2Faws-ssm-send-command","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterkimzz%2Faws-ssm-send-command/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterkimzz%2Faws-ssm-send-command/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterkimzz%2Faws-ssm-send-command/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peterkimzz","download_url":"https://codeload.github.com/peterkimzz/aws-ssm-send-command/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterkimzz%2Faws-ssm-send-command/sbom","scorecard":{"id":728998,"data":{"date":"2025-08-11","repo":{"name":"github.com/peterkimzz/aws-ssm-send-command","commit":"931e3645de26eef6b29f323f1c4c7dee89be5665"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"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/19 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":"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":"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/tester.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":"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: 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":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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 12 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":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-7r3h-m5j6-3q42","Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","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":"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/tester.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/peterkimzz/aws-ssm-send-command/tester.yml/master?enable=pin","Info:   0 out of   1 GitHub-owned 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":"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"}}]},"last_synced_at":"2025-08-22T13:50:49.876Z","repository_id":40709847,"created_at":"2025-08-22T13:50:49.876Z","updated_at":"2025-08-22T13:50:49.876Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279078595,"owners_count":26098552,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-15T02:00:07.814Z","response_time":56,"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":["actions"],"created_at":"2025-05-11T09:07:39.387Z","updated_at":"2025-10-15T12:36:54.621Z","avatar_url":"https://github.com/peterkimzz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS SSM Send-Command\n\nThis action helps you to execute remote bash command for AWS EC2 instance **without SSH or other accessing**.\n\n(This action internally uses AWS SSM Send-Command.)\n\n## Contents\n\n- [Requirements](#Requirements)\n- [Usage example](#Usage-example)\n- [Inputs](#Inputs)\n- [Outputs](#Outputs)\n- [Error Handling](#Error-Handling)\n\n## Requirements\n\n1. To use this action, you have to set AWS IAM Role `AmazonSSMFullAccess` to your IAM user.\n2. Also your EC2 Instance must have IAM Role including `AmazonSSMFullAccess`.\n\n## Usage example\n\n```yml\nname: AWS SSM Send-Command Example\n\non:\n  push:\n    branches: [master]\n\njobs:\n  start:\n    runs-on: ubuntu-latest\n\n    steps:\n      - uses: actions/checkout@v2\n\n      - name: AWS SSM Send-Command\n        uses: peterkimzz/aws-ssm-send-command@master\n        id: ssm\n        with:\n          aws-region: ${{ secrets.AWS_REGION }}\n          aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}\n          aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}\n          instance-ids: ${{ secrets.INSTANCE_ID }}\n\n          working-directory: /home/ubuntu/application\n          command: ls -al\n          comment: Hello world!\n\n      # Catch SSM outputs\n      - name: Get the outputs\n        run: echo \"The Command id is ${{ steps.ssm.outputs.command-id }}\"\n```\n\n## Inputs\n\n### `aws-access-key-id`\n\n**Required** Your IAM access key id.\n\n### `aws-secret-access-key`\n\n**Required** Your IAM secret access key id.\n\n### `aws-region`\n\n**Required** AWS EC2 Instance region. (e.g. us-west-1, us-northeast-1, ...)\n\n### `instance-ids`\n\n**Required** The id of AWS EC2 instance id (e.g i-xxx...)\n\n```yml\n# single instance\ninstance-ids: i-0b1f8b18a1d450000\n\n# multiple instances (maxium 50 values)\ninstance-ids: |\n  i-0b1f8b18a1d450000\n  i-0b1f8b18a1d450001\n  i-0b1f8b18a1d450002\n```\n\n### `command`\n\nBash command you want to execute in a EC2 instance.\n\n```yml\n# default\ncommand: echo $(date) \u003e\u003e logs.txt\n\n# restart your pm2 service\ncommand: pm2 restart 0\n\n# or execute shell script\ncommand: /bin/sh restart.sh\n```\n\n### `working-directory`\n\nWhere bash command executes.\n\n```yml\n# default\nworking-directory: /home/ubuntu\n```\n\n### `comment`\n\nLogging message attached AWS SSM.\n\n```yml\n# default\ncomment: Executed by Github Actions\n```\n\n## Outputs\n\n### command-id\n\nAWS SSM Run-Command id. (uuid type)\n\n```bash\n# example\n6cf26b6f-b68f-4e20-b801-f6ee5318d000\n```\n\n## Error Handling\n\n### AccessDeniedException\n\nThis error occurs when you are not set AWS IAM role about SSM. Please set the IAM permission `AmazonSSMFullAccess` (recommended)\n\n### InvalidInstanceId: null\n\nThis error occurs when you are not attach AWS IAM role to your EC2 instance. Please set the IAM role `AmazonSSMFullAccess` (recommended)\n\n\u003e In almost error cases, those issues would be resolved when you set IAM Role to your `AWS Account` and `EC2 IAM Role`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterkimzz%2Faws-ssm-send-command","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterkimzz%2Faws-ssm-send-command","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterkimzz%2Faws-ssm-send-command/lists"}