{"id":21999969,"url":"https://github.com/mooyoul/cloudwatch-logs-actions","last_synced_at":"2025-05-01T01:51:58.842Z","repository":{"id":37604107,"uuid":"274523510","full_name":"mooyoul/cloudwatch-logs-actions","owner":"mooyoul","description":"Integrates Github Actions with AWS CloudWatch Logs","archived":false,"fork":false,"pushed_at":"2025-04-25T00:41:44.000Z","size":4193,"stargazers_count":4,"open_issues_count":8,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-25T01:32:38.050Z","etag":null,"topics":["aws","cloudwatch-logs","cwlogs","github-actions"],"latest_commit_sha":null,"homepage":"","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/mooyoul.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2020-06-23T22:43:27.000Z","updated_at":"2025-04-25T00:38:34.000Z","dependencies_parsed_at":"2023-02-16T04:01:29.397Z","dependency_job_id":"b849d599-e4a1-42c1-91bd-c64496811695","html_url":"https://github.com/mooyoul/cloudwatch-logs-actions","commit_stats":{"total_commits":711,"total_committers":4,"mean_commits":177.75,"dds":0.2770745428973277,"last_synced_commit":"2c2a4d52414a5c65bceaa3f989f59f944768d717"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mooyoul%2Fcloudwatch-logs-actions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mooyoul%2Fcloudwatch-logs-actions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mooyoul%2Fcloudwatch-logs-actions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mooyoul%2Fcloudwatch-logs-actions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mooyoul","download_url":"https://codeload.github.com/mooyoul/cloudwatch-logs-actions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251810898,"owners_count":21647626,"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","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","cloudwatch-logs","cwlogs","github-actions"],"created_at":"2024-11-29T23:09:06.126Z","updated_at":"2025-05-01T01:51:58.816Z","avatar_url":"https://github.com/mooyoul.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cloudwatch-logs-actions\n\n[![Build Status](https://github.com/mooyoul/cloudwatch-logs-actions/workflows/workflow/badge.svg)](https://github.com/mooyoul/cloudwatch-logs-actions/actions)\n[![Example Status](https://github.com/mooyoul/cloudwatch-logs-actions/workflows/example/badge.svg)](https://github.com/mooyoul/cloudwatch-logs-actions/actions)\n[![Semantic Release enabled](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[![Renovate enabled](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com/)\n[![MIT license](http://img.shields.io/badge/license-MIT-blue.svg)](http://mooyoul.mit-license.org/)\n\nGitHub action that integrates with Amazon CloudWatch Logs.\n\n![Example](./assets/example.png)\n\n-----\n\n## Why?\n\nI have an open sourced Backend Project, and I want to hide\ndeploy log to prevent sensitive information leak.\n\n... but currently, There are no way to hide logs of Github Actions.\nSo, My idea is - forward stdout/stderr output to CloudWatch Logs without printing logs.\n\nSee below example for further details.\n\n\n##### Example\n\n```yaml\n# ...\njobs:\n  job:\n    runs-on: ubuntu-latest\n    timeout-minutes: 5\n    steps:\n      - name: Deploy\n        uses: mooyoul/cloudwatch-logs-actions@v1.1.5\n        env:\n          AWS_DEFAULT_REGION: us-east-1\n          AWS_REGION: us-east-1\n          AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}\n          AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}\n        with:\n          group: my-open-project\n          stream: ${{ gihub.sha }}\n          retention: 14\n          run: |\n            # you can use multiline commands if needed\n            npm run deploy:stage\n            npm run deploy:prod\n```\n\n##### Input\n\n```typescript\ntype Input = {\n  // Cloudwatch Logs Region\n  region: string;\n\n  // Name of Log Group\n  group: string;\n\n  // Name of Log Stream\n  stream: string;\n\n  // The number of days to retain the log events in the specified log group.\n  // Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653.\n  retention?: string;\n  \n  // Which shell to use\n  // Possible values are: sh, bash (default: sh)\n  shell?: string;\n\n  // Command to run, Supports multiple commands\n  run: string;\n}\n```\n\n##### Output\n\nNone\n\n## License\n\n[MIT](LICENSE)\n\nSee full license on [mooyoul.mit-license.org](http://mooyoul.mit-license.org/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmooyoul%2Fcloudwatch-logs-actions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmooyoul%2Fcloudwatch-logs-actions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmooyoul%2Fcloudwatch-logs-actions/lists"}