{"id":30690244,"url":"https://github.com/scriptsmith/cdk-github-actions-role","last_synced_at":"2025-09-02T02:10:34.054Z","repository":{"id":312200710,"uuid":"1046642645","full_name":"ScriptSmith/cdk-github-actions-role","owner":"ScriptSmith","description":"Create an IAM role with permissions to perform GitHub actions tasks","archived":false,"fork":false,"pushed_at":"2025-08-29T03:22:21.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-29T07:33:55.070Z","etag":null,"topics":["aws","cdk","github-actions","oidc"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ScriptSmith.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-08-29T02:06:40.000Z","updated_at":"2025-08-29T03:31:28.000Z","dependencies_parsed_at":"2025-08-29T07:44:14.135Z","dependency_job_id":null,"html_url":"https://github.com/ScriptSmith/cdk-github-actions-role","commit_stats":null,"previous_names":["scriptsmith/cdk-github-actions-role"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/ScriptSmith/cdk-github-actions-role","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptSmith%2Fcdk-github-actions-role","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptSmith%2Fcdk-github-actions-role/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptSmith%2Fcdk-github-actions-role/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptSmith%2Fcdk-github-actions-role/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ScriptSmith","download_url":"https://codeload.github.com/ScriptSmith/cdk-github-actions-role/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptSmith%2Fcdk-github-actions-role/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273218437,"owners_count":25065915,"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-09-02T02:00:09.530Z","response_time":77,"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","cdk","github-actions","oidc"],"created_at":"2025-09-02T02:10:33.056Z","updated_at":"2025-09-02T02:10:34.049Z","avatar_url":"https://github.com/ScriptSmith.png","language":"TypeScript","readme":"# CDK Github Actions Role\n\nThis CDK Construct Library project provides a construct (`CdkGithubActionsRole`) that creates an IAM role with permissions to perform GitHub Actions tasks.\n\n## Usage\n\nCDK stack generating the Role:\n\n```typescript\nimport * as cdk from \"aws-cdk-lib\";\nimport { CdkGithubActionsRole } from \"@scriptsmith/cdk-github-actions-role\";\n\nconst stack = new cdk.Stack();\n\nconst githubRole = new CdkGithubActionsRole(stack, \"MyTestConstruct\", {\n  owner: \"my-owner\",\n  repository: \"my-repo\",\n});\n\ncdk.CfnOutput(stack, \"RoleArn\", {\n  value: githubRole.role.roleArn,\n});\n```\n\nGitHub action using the generated Role's ARN:\n\n```yaml\njobs:\n  deploy:\n    steps:\n      - uses: aws-actions/configure-aws-credentials@v4\n        with:\n          aws-region: ap-southeast-2\n          role-to-assume: ${{ secrets.ROLE_ARN }}\n          role-duration-seconds: 1800\n          output-credentials: true\n          mask-aws-account-id: true\n      - name: Deploy CDK\n        run: npm run cdk deploy\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscriptsmith%2Fcdk-github-actions-role","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscriptsmith%2Fcdk-github-actions-role","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscriptsmith%2Fcdk-github-actions-role/lists"}