{"id":37858495,"url":"https://github.com/winglang/github-aws-oidc","last_synced_at":"2026-01-16T16:29:47.480Z","repository":{"id":180777412,"uuid":"665613307","full_name":"winglang/github-aws-oidc","owner":"winglang","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-12T19:18:19.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2023-07-12T20:25:10.368Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CWeb","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/winglang.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}},"created_at":"2023-07-12T15:33:50.000Z","updated_at":"2023-07-12T20:25:11.693Z","dependencies_parsed_at":"2023-07-12T20:35:21.208Z","dependency_job_id":null,"html_url":"https://github.com/winglang/github-aws-oidc","commit_stats":null,"previous_names":["winglang/github-aws-oidc"],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/winglang/github-aws-oidc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winglang%2Fgithub-aws-oidc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winglang%2Fgithub-aws-oidc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winglang%2Fgithub-aws-oidc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winglang%2Fgithub-aws-oidc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/winglang","download_url":"https://codeload.github.com/winglang/github-aws-oidc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/winglang%2Fgithub-aws-oidc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28479893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: 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":[],"created_at":"2026-01-16T16:29:47.395Z","updated_at":"2026-01-16T16:29:47.467Z","avatar_url":"https://github.com/winglang.png","language":"CWeb","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Winglang AWS OIDC Setup for Github Actions\n\nThis Winglang application helps you to set up AWS OpenID Connect (OIDC) for your GitHub Actions.\n\n## Prerequisites\n\n- You should have the Winglang CLI installed `npm install -g winglang@latest`\n- Access to an AWS Account and necessary permissions to create and manage IAM Roles, Policies, and OIDC provider.\n\n## Define Allowed Action Sources\n\nYou'll be prompted for the `repo_name` variable from Terraform. This expects the format in `org/repo`. You can also specify this via a tfvars file by  renaming the [terraform.tfvars.example](./terraform.tfvars.example) file to `terrform.tfvars` and adjusting the `repo_name` accordingly.\n\nBy default, this will allow assuming roles for Github Actions which are either running as part of:\n\n- A Pull Request\n- On the `main` branch\n\nFor more information about possible criterias, please visit [Github Docs](https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect#understanding-the-oidc-token)\n\n## IAM Actions\n\nBy default the `policy` object grants Administrator access to the AWS IAM Role. You can - and probably should - modify this as per your requirements.\n\n## OpenID Connect Provider\n\nAn instance of the OIDC provider for GitHub Actions is created that can be deployed once per account.\n\n## Output\n\nThe ARN of the role is provided as the output.\n\n## Usage\n\nTo use this application:\n\n1. Clone the repository onto your local system.\n2. Install the dependencies using `npm install`\n3. Customize the allowed sources and IAM actions as necessary in the  [main.w](./main.w) file.\n4. Deploy the setup by running the Winglang application using the deploy script:\n\n```\n./deploy.sh\n```\n\nThis process will prompt for the repository name, which is not stored and will therefore need to be entered again during subsequent runs.\n\nFor ease of use, consider renaming the [terraform.tfvars.example](./terraform.tfvars.example) file to `terrform.tfvars` and adjusting the `repo_name` accordingly.\n\n```\ncp terraform.tfvars.example terraform.tfvars\n```\n\n### Cleanup\n\nFor destroying resources and cleaning up, you can use the `./destroy.sh` script.\n\n### Terraform State\n\nThe [deploy](./deploy.sh) generates the Terraform state in the root folder of the project as `terraform.tfstate`. Make sure to retain this file for any future updates or for easy destruction of created resources.\n\nFor multi-user setups or organizational contexts, you may want to consider other Terraform [backend options](https://www.winglang.io/docs/guides/terraform-backends) which may be more suitable for you.\n\n## Contributing\n\nContributions, issues, and feature requests are welcome. Feel free to check issues page if you want to contribute.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinglang%2Fgithub-aws-oidc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwinglang%2Fgithub-aws-oidc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinglang%2Fgithub-aws-oidc/lists"}