{"id":21802632,"url":"https://github.com/yc-actions/yc-sls-function","last_synced_at":"2025-04-09T23:21:28.337Z","repository":{"id":37424986,"uuid":"425512112","full_name":"yc-actions/yc-sls-function","owner":"yc-actions","description":"GitHub Action to deploy Serverless Function to Yandex Cloud.","archived":false,"fork":false,"pushed_at":"2025-04-07T17:05:09.000Z","size":41045,"stargazers_count":45,"open_issues_count":4,"forks_count":9,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-07T17:27:47.307Z","etag":null,"topics":["functions","github-actions","serverless","yandex-cloud"],"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/yc-actions.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":"2021-11-07T13:33:53.000Z","updated_at":"2025-04-07T16:29:07.000Z","dependencies_parsed_at":"2023-01-11T17:21:14.513Z","dependency_job_id":"e6be353e-568e-48c9-9ce6-54ed603b9939","html_url":"https://github.com/yc-actions/yc-sls-function","commit_stats":{"total_commits":318,"total_committers":5,"mean_commits":63.6,"dds":0.07547169811320753,"last_synced_commit":"b76526e976b853382db5907b05385e535566d2d9"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yc-actions%2Fyc-sls-function","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yc-actions%2Fyc-sls-function/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yc-actions%2Fyc-sls-function/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yc-actions%2Fyc-sls-function/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yc-actions","download_url":"https://codeload.github.com/yc-actions/yc-sls-function/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248126366,"owners_count":21051910,"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":["functions","github-actions","serverless","yandex-cloud"],"created_at":"2024-11-27T11:29:55.898Z","updated_at":"2025-04-09T23:21:28.314Z","avatar_url":"https://github.com/yc-actions.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## GitHub Action to deploy Serverless Function to Yandex Cloud\n\nThe action finds or creates Serverless Function in the given folder in Yandex Cloud and deploys new version.\n\n**Table of Contents**\n\n\u003c!-- toc --\u003e\n\n- [Usage](#usage)\n- [Permissions](#permissions)\n- [License Summary](#license-summary)\n\n\u003c!-- tocstop --\u003e\n\n## Usage\n\n```yaml\n    - name: Deploy Function\n      id: sls-func\n      uses: yc-actions/yc-sls-function@v2\n      with:\n        yc-sa-json-credentials: ${{ secrets.YC_SA_JSON_CREDENTIALS }}\n        bucket: ${{ secrets.BUCKET }}\n        folder-id: 'b1g*********'\n        function-name: 'test-function'\n        runtime: 'nodejs16'\n        memory: '256Mb'\n        entrypoint: 'src/main.handler'\n        environment: |\n          DEBUG=True\n          COUNT=1\n        include: |\n          ./src\n          package.json\n        exclude: |\n          **/*.ts\n        tags: |\n          ${{ GITHUB_SHA::6 }}\n          foo\n```\n\n`yc-sa-json-credentials` should contain JSON with authorized key for Service Account. More info\nin [Yandex Cloud IAM documentation](https://yandex.cloud/en/docs/iam/operations/iam-token/create-for-sa).\n\nSee [action.yml](action.yml) for the full documentation for this action's inputs and outputs.\n\n## Permissions\n\n### Deploy time permissions\n\nTo perform this action, the service account on behalf of which we are acting must have\nthe `functions.editor` role or higher.\n\nAdditionally, you may need to grant the following optional roles depending on your specific needs:\n\n| Optional Role              | Required For                                                                           |\n|----------------------------|----------------------------------------------------------------------------------------|\n| `iam.serviceAccounts.user` | Providing the service account ID in parameters, ensuring access to the service account |\n| `vpc.user`                 | Deploying the function in a VPC with a specified network ID                            |\n| `functions.admin`          | Making the function public                                                             |\n\n### Runtime permissions\n\nThe service account provided to function via `service-account` parameter must have the following roles:\n\n| Required Role                 | Required For                                                        |\n|-------------------------------|---------------------------------------------------------------------|\n| `lockbox.payloadViewer`       | To access the Lockbox secrets.                                      |\n| `kms.keys.encrypterDecrypter` | To decrypt the Lockbox secrets, if they are encrypted with KMS key. |\n\n## License Summary\n\nThis code is made available under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyc-actions%2Fyc-sls-function","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyc-actions%2Fyc-sls-function","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyc-actions%2Fyc-sls-function/lists"}