{"id":26909879,"url":"https://github.com/stack-spot/runtime-tasks-action","last_synced_at":"2026-01-11T01:41:26.973Z","repository":{"id":245931068,"uuid":"816467579","full_name":"stack-spot/runtime-tasks-action","owner":"stack-spot","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-19T19:43:35.000Z","size":84,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-19T20:29:22.165Z","etag":null,"topics":["cloud-runtime","code","maintain"],"latest_commit_sha":null,"homepage":"","language":null,"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/stack-spot.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":"2024-06-17T20:19:16.000Z","updated_at":"2024-11-21T20:58:20.000Z","dependencies_parsed_at":"2024-06-24T22:17:53.523Z","dependency_job_id":"8a2d85a8-5ba1-48eb-98ba-3ebd66ba57db","html_url":"https://github.com/stack-spot/runtime-tasks-action","commit_stats":null,"previous_names":["stack-spot/runtime-tasks-action"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stack-spot%2Fruntime-tasks-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stack-spot%2Fruntime-tasks-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stack-spot%2Fruntime-tasks-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stack-spot%2Fruntime-tasks-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stack-spot","download_url":"https://codeload.github.com/stack-spot/runtime-tasks-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246647127,"owners_count":20811257,"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":["cloud-runtime","code","maintain"],"created_at":"2025-04-01T13:29:52.597Z","updated_at":"2026-01-11T01:41:26.967Z","avatar_url":"https://github.com/stack-spot.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Runtimes Tasks Integrated Action\n\n## runtimes-tasks-action\n\nThis Github action aims to integrate seamlessly along with [Runtime Manager Action](https://github.com/stack-spot/runtime-manager-action). Its intention is to in a single action join [Runtime IaC Action](https://github.com/stack-spot/runtime-iac-action), [Runtime Deploy Action](https://github.com/stack-spot/runtime-deploy-action) and [Runtime Destroy Action](https://github.com/stack-spot/runtime-destroy-action) into a single runner. Sometimes users don't have the necessity of doing customizable steps during the deployment process, this action removes this possibility and does the entire process within a single runner instance.\n\n## Usage\n\n### Requirements\n\nTo get the account keys (`CLIENT_ID`, `CLIENT_KEY` and `CLIENT_REALM`), please login using a **ADMIN** user on the [StackSpot Portal](https://stackspot.com), and generate new keys [here](https://stackspot.com/en/settings/access-token).\nAlso you need a runner with access to your AWS account.\nYou need to pair this action along with [Runtime Manager Action](https://github.com/stack-spot/runtime-manager-action) and [Runtime Manager Cancel Action](https://github.com/stack-spot/runtime-cancel-run-action)\n\n### Use Case\n\n```yaml\nname: Stk Self Hosted\n\non:\n  push:\n    branches: [main]\n\nconcurrency:\n  group: ${{ github.workflow }}-${{ github.ref }}\n  cancel-in-progress: true\n\njobs:\n    orchestration:\n        runs-on: ubuntu-latest                        # self-hosted-runner\n        outputs:\n            tasks: ${{ steps.run.outputs.tasks }}\n            run_id: ${{ steps.run.outputs.run_id }}\n        steps:\n            - name: Authentication + Get Tasks\n              id: run\n              uses: stack-spot/runtime-manager-action@v2\n              with:\n                CLIENT_ID: ${{ secrets.CLIENT_ID }}\n                CLIENT_KEY: ${{ secrets.CLIENT_KEY }}\n                CLIENT_REALM: ${{ secrets.CLIENT_REALM }}\n                WORKSPACE: my_workspace\n                ENVIRONMENT: my_environment\n                VERSION_TAG: my_tag\n                TF_STATE_BUCKET_NAME: my_bucket\n                TF_STATE_REGION: region\n                IAC_BUCKET_NAME: my_bucket\n                IAC_REGION: region\n                VERBOSE: true                      # not mandatory\n                BRANCH: main                       # not mandatory\n                OPEN_API_PATH: swagger.yaml        # not mandatory\n                DYNAMIC_INPUTS: --key1 value1 --key2 value2\n\n    provision:\n        runs-on: ubuntu-latest                   # self-hosted-runner\n        needs: [orchestration]\n        steps:\n            - name: Service Provision\n              uses: stack-spot/runtimes-tasks-action@v1\n              with:\n                TASK_LIST: ${{ needs.orchestration.outputs.tasks }}\n                FEATURES_LEVEL_LOG: debug\n                AWS_REGION: sa-east-1\n                REPOSITORY_NAME: ${{ github.event.repository.name }}\n                PATH_TO_MOUNT: /home/runner/_work/${{ github.event.repository.name }}/${{ github.event.repository.name }}\n                CHECKOUT_BRANCH: ${{ inputs.checkout-branch }}\n                LOCALEXEC_ENABLED: true\n                FEATURES_TERRAFORM_MODULES: \u003e-\n                    [\n                        {\n                        \"sourceType\":\"gitHttps\",\n                        \"path\":\"github.com/stack-spot\",// Allow all repositoris on stack-spot org\n                        \"private\": true,\n                        \"app\":\"app\",\n                        \"token\":\"token\"\n                        },\n                        {\n                        \"sourceType\":\"terraformRegistry\",\n                        \"path\":\"hashicorp/stack-spot\", // Allow all modules on stack-spot org\n                        \"private\": false\n                        }\n                    ]\n                CLIENT_ID: ${{ secrets.stk-client-id }}\n                CLIENT_KEY: ${{ secrets.stk-client-secret }}\n                CLIENT_REALM: ${{ secrets.stk-realm }}\n                AWS_ROLE_ARN: ${{ secrets.AWS_ROLE_ARN }}\n\n    cancel-run:\n        runs-on: ubuntu-latest\n        needs: [orchestration, provision]\n        if: ${{ always() \u0026\u0026 needs.orchestration.outputs.run_id != '' }}\n        steps:\n            - name: Cancel run\n              uses: stack-spot/runtime-cancel-run-action@v1\n              with:\n                CLIENT_ID: ${{ secrets.CLIENT_ID }}\n                CLIENT_KEY: ${{ secrets.CLIENT_KEY }}\n                CLIENT_REALM: ${{ secrets.CLIENT_REALM }}\n                RUN_ID: ${{ needs.orchestration.outputs.run_id }}\n```\n\n## Inputs\n\n\n| Name                         | Description                                                                  | Type    | Required | Default                                |\n|------------------------------|------------------------------------------------------------------------------|---------|----------|----------------------------------------|\n| `TASK_LIST`                  | List of tasks                                                                | string  | true     |                                        |\n| `FEATURES_LEVEL_LOG`         | Log Level                                                                    | string  | true     |                                        |\n| `REPOSITORY_NAME`            | Git Repository Name                                                          | string  | true     |                                        |\n| `AWS_REGION`                 | AWS REGION                                                                   | string  | true     |                                        |\n| `CONTAINER_URL_IAC`          | IAC Container URL                                                            | string  | false    | `stackspot/runtime-job-iac:latest`     |\n| `CONTAINER_URL_DEPLOY`       | Deploy Container URL                                                         | string  | false    | `stackspot/runtime-job-deploy:latest`  |\n| `CONTAINER_URL_DESTROY`      | Destroy Container URL                                                        | string  | false    | `stackspot/runtime-job-destroy:latest` |\n| `FEATURES_TERRAFORM_MODULES` | Terraform Modules                                                            | string  | false    |                                        |\n| `PATH_TO_MOUNT`              | Path to mount inside the docker                                              | string  | true     |                                        |\n| `OUTPUT_FILE`                | File name to save outputs: {plugin-alias}_{OUTPUT_FILE}                      | string  | false    | `outputs.json`                         |\n| `LOCALEXEC_ENABLED`          | If Runtimes will allow execution of the local-exec command within terraform  | boolean | false    | `false`                                |\n| `TF_LOG_PROVIDER`            | Level tf log provider - info, debug, warn or trace                           | string  | false    |                                        |\n| `CHECKOUT_BRANCH`            | Whether or not checkout is enabled.                                          | boolean | false    | `false`                                |\n| `BASE_PATH_OUTPUT`           | Base Path Output                                                             | string  | false    |                                        |\n| `CLIENT_ID`                  | CLIENT ID                                                                    | string  | true     |                                        |\n| `CLIENT_KEY`                 | CLIENT KEY                                                                   | string  | true     |                                        |\n| `CLIENT_REALM`               | CLIENT REALM                                                                 | string  | true     |                                        |\n| `AWS_ACCESS_KEY_ID`          | AWS ACCESS KEY ID from console                                               | string  | false    |                                        |\n| `AWS_SECRET_ACCESS_KEY`      | AWS SECRET ACCESS KEY from console                                           | string  | false    |                                        |\n| `AWS_SESSION_TOKEN`          | AWS SESSION TOKEN from console                                               | string  | false    |                                        |\n| `AWS_ROLE_ARN`               | AWS ROLE ARN                                                                 | string  | false    |                                        |\n| `EXCLUDE_FILES_PATH`         | Enter Path that should be deleted with 'rm -rf {{ inputs.PATH_TO_MOUNT }}/{{ inputs.EXCLUDE_FILES_PATH }}' | string  | false    |                                        |\n\n* * *\n\n## License\n\n[Apache License 2.0](https://github.com/stack-spot/runtime-manager-action/blob/main/LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstack-spot%2Fruntime-tasks-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstack-spot%2Fruntime-tasks-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstack-spot%2Fruntime-tasks-action/lists"}