{"id":13472813,"url":"https://github.com/aws-actions/setup-sam","last_synced_at":"2025-04-06T02:09:04.107Z","repository":{"id":41039131,"uuid":"348485922","full_name":"aws-actions/setup-sam","owner":"aws-actions","description":"Action to set up AWS SAM CLI and add it to the PATH","archived":false,"fork":false,"pushed_at":"2024-06-17T19:48:02.000Z","size":356,"stargazers_count":151,"open_issues_count":5,"forks_count":23,"subscribers_count":12,"default_branch":"main","last_synced_at":"2024-10-30T05:26:18.418Z","etag":null,"topics":["aws-sam-cli","cicd","sam","serverless"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/aws-actions.png","metadata":{"files":{"readme":"README.md","changelog":null,"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-03-16T20:41:45.000Z","updated_at":"2024-09-30T19:05:39.000Z","dependencies_parsed_at":"2024-02-01T00:27:02.812Z","dependency_job_id":"e2adc459-da92-430a-b0cf-447ae352cf74","html_url":"https://github.com/aws-actions/setup-sam","commit_stats":{"total_commits":49,"total_committers":7,"mean_commits":7.0,"dds":"0.44897959183673475","last_synced_commit":"b42eb7a54dac4039080975e32860b1b30935c9af"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws-actions%2Fsetup-sam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws-actions%2Fsetup-sam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws-actions%2Fsetup-sam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws-actions%2Fsetup-sam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aws-actions","download_url":"https://codeload.github.com/aws-actions/setup-sam/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247423515,"owners_count":20936626,"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-sam-cli","cicd","sam","serverless"],"created_at":"2024-07-31T16:00:58.208Z","updated_at":"2025-04-06T02:09:04.073Z","avatar_url":"https://github.com/aws-actions.png","language":"JavaScript","readme":"# setup-sam\n\n[![Tests](https://github.com/aws-actions/setup-sam/actions/workflows/test.yml/badge.svg)](https://github.com/aws-actions/setup-sam/actions/workflows/test.yml)\n[![Release](https://github.com/aws-actions/setup-sam/actions/workflows/release.yml/badge.svg)](https://github.com/aws-actions/setup-sam/actions/workflows/release.yml)\n\nAction to set up [AWS SAM CLI](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-reference.html#serverless-sam-cli) and add it to the `PATH`.\n\nThis action enables you to run AWS SAM CLI commands in order to build, package, and deploy [serverless applications](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/what-is-sam.html) as part of your workflow.\n\n## Example\n\nAssuming you have a [`samconfig.toml`](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-config.html) at the root of your repository:\n\n```yaml\non:\n  push:\n    branches:\n      - main\njobs:\n  deploy:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v3\n      - uses: aws-actions/setup-sam@v2\n        with:\n          use-installer: true\n          token: ${{ secrets.GITHUB_TOKEN }}\n      - uses: aws-actions/configure-aws-credentials@v2\n        with:\n          aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}\n          aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}\n          aws-region: us-east-2\n      # Build inside Docker containers\n      - run: sam build --use-container\n      # Prevent prompts and failure when the stack is unchanged\n      - run: sam deploy --no-confirm-changeset --no-fail-on-empty-changeset\n```\n\nSee [AWS IAM best practices](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html) for handling AWS credentials.\n\n## Inputs\n\n### `version`\n\nThe AWS SAM CLI version to install. Installs the latest version by default.\n\n### `use-installer`\n\n\u003e **Note**\n\u003e\n\u003e This is the recommended approach on supported platforms. It does not require Python to be installed, and is faster than the default installation method.\n\u003e\n\u003e Currently supports Linux x86-64 runners.\n\nSet to `true` to set up AWS SAM CLI using a native installer. Defaults to `false`.\n\n### `python`\n\n\u003e **Note**\n\u003e\n\u003e Unused if `use-installer` is set to `true`.\n\nThe Python interpreter to use for AWS SAM CLI. Defaults to `python` on Windows, and `python3` otherwise.\n\nYou can use [`actions/setup-python`](https://github.com/actions/setup-python) to automatically set up Python.\n\n### `token`\n\n\u003e **Note**\n\u003e\n\u003e It is recommended to use token to have higher rate limit. Default [unauthenticated users](https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api?apiVersion=2022-11-28#primary-rate-limit-for-unauthenticated-users) without a token will have a lesser rate limit enforced.\n\nThe GITHUB Authentication token to use for calling the GITHUB [Get the latest release](https://docs.github.com/en/rest/releases/releases?apiVersion=2022-11-28#get-the-latest-release) API. Defaults to call the API as unauthenticated request if not specified.\n\nThe parameter can accept either [`GITHUB_TOKEN`](https://docs.github.com/en/actions/security-guides/automatic-token-authentication) or [`PAT(Personal Access Token)`](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) tokens.\n\n## Security\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md#security-disclosures) for more information.\n\n## License\n\nThis project is licensed under the [Apache-2.0 License](LICENSE).\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faws-actions%2Fsetup-sam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faws-actions%2Fsetup-sam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faws-actions%2Fsetup-sam/lists"}