{"id":8236193,"name":"stack-spot/runtime-github-action-destroy","ecosystem":"actions","description":"Runs Runtime Action Destroy with parameters","homepage":"https://www.stackspot.com/","licenses":"apache-2.0","normalized_licenses":["Apache-2.0"],"repository_url":"https://github.com/stack-spot/runtime-github-action-destroy","keywords_array":["cloud-runtime","code","github-actions","maintain","self-hosted","stackspot"],"namespace":"stack-spot","versions_count":4,"first_release_published_at":"2023-08-31T15:33:26.000Z","latest_release_published_at":"2024-05-21T18:02:19.000Z","latest_release_number":"v2.2","last_synced_at":"2026-03-16T00:20:14.189Z","created_at":"2023-09-05T16:09:09.856Z","updated_at":"2026-03-16T00:20:14.190Z","registry_url":"https://github.com/stack-spot/runtime-github-action-destroy","install_command":null,"documentation_url":null,"metadata":{"name":"Run Runtime Action Destroy","description":"Runs Runtime Action Destroy with parameters","inputs":{"FEATURES_LEVEL_LOG":{"description":"Log Level","required":true},"CLIENT_ID":{"description":"CLIENT ID","required":true},"CLIENT_KEY":{"description":"CLIENT KEY","required":true},"CLIENT_REALM":{"description":"CLIENT REALM","required":true},"REPOSITORY_NAME":{"description":"Git Repository Name","required":true},"AWS_ACCESS_KEY_ID":{"description":"AWS ACCESS KEY ID from console","required":false},"AWS_SECRET_ACCESS_KEY":{"description":"AWS SECRET ACCESS KEY from console","required":false},"AWS_SESSION_TOKEN":{"description":"AWS SESSION TOKEN from console","required":false},"AWS_REGION":{"description":"AWS REGION","required":true},"AWS_ROLE_ARN":{"description":"AWS ROLE ARN","required":false},"RUN_TASK_ID":{"description":"Runtime Run Task Id","required":true},"CONTAINER_URL":{"description":"Destroy Container url","default":"stackspot/runtime-job-destroy:latest","required":false},"FEATURES_TERRAFORM_MODULES":{"description":"Terraform Modules","required":false},"PATH_TO_MOUNT":{"description":"Path to mount inside the docker","required":true,"default":"${{ github.workspace }}"},"LOCALEXEC_ENABLED":{"description":"If Runtimes will allow execution of the local-exec command within terraform","required":false,"default":false},"TF_LOG_PROVIDER":{"description":"Level tf log provider - info, debug, warn or trace","required":false}},"runs":{"using":"composite","steps":[{"name":"Check Runner","run":"echo 🤖 OS runner is $(uname)","shell":"bash"},{"name":"Configure aws credentials","id":"aws-cred","if":"${{ inputs.AWS_ROLE_ARN != 0 }}","uses":"aws-actions/configure-aws-credentials@v4","with":{"role-to-assume":"${{ inputs.AWS_ROLE_ARN }}","aws-region":"${{ inputs.AWS_REGION }}","output-credentials":true}},{"name":"Run Runtime Action Destroy","run":"FLAGS=$(echo \"-v ${{ inputs.PATH_TO_MOUNT }}:/app-volume  \\\n-e FEATURES_LEVEL_LOG=${{ inputs.FEATURES_LEVEL_LOG }} \\\n-e AUTHENTICATE_CLIENT_ID=${{ inputs.CLIENT_ID }} \\\n-e AUTHENTICATE_CLIENT_SECRET=${{ inputs.CLIENT_KEY }} \\\n-e AUTHENTICATE_CLIENT_REALMS=${{ inputs.CLIENT_REALM }} \\\n-e AUTHENTICATE_URL=https://idm.stackspot.com \\\n-e REPOSITORY_NAME=${{ inputs.REPOSITORY_NAME }} \\\n-e FEATURES_API_MANAGER=https://runtime-manager.v1.stackspot.com \\\n-e FEATURES_BASEPATH_TMP=/tmp/runtime/deploys \\\n-e FEATURES_BASEPATH_EBS=/opt/runtime \\\n-e FEATURES_TEMPLATES_FILEPATH=/app/ \\\n-e FEATURES_BASEPATH_TERRAFORM=/root/.asdf/shims/terraform \\\n-e AWS_REGION=${{ inputs.AWS_REGION }} \\\n-e FEATURES_RELEASE_LOCALEXEC=${{ inputs.LOCALEXEC_ENABLED }}\")\n\nif [ -z \"${{ inputs.AWS_ROLE_ARN }}\" ]; then\n  FLAGS=$(echo \"$FLAGS -e AWS_ACCESS_KEY_ID=${{ inputs.AWS_ACCESS_KEY_ID }}\")\n  FLAGS=$(echo \"$FLAGS -e AWS_SECRET_ACCESS_KEY=${{ inputs.AWS_SECRET_ACCESS_KEY }}\")\n  FLAGS=$(echo \"$FLAGS -e AWS_SESSION_TOKEN=${{ inputs.AWS_SESSION_TOKEN }}\")\nfi\n\nif [ ! -z \"${{ inputs.AWS_ROLE_ARN }}\" ]; then\n  FLAGS=$(echo \"$FLAGS -e AWS_ACCESS_KEY_ID=${{ steps.aws-cred.outputs.aws-access-key-id }}\")\n  FLAGS=$(echo \"$FLAGS -e AWS_SECRET_ACCESS_KEY=${{ steps.aws-cred.outputs.aws-secret-access-key }}\")\n  FLAGS=$(echo \"$FLAGS -e AWS_SESSION_TOKEN=${{ steps.aws-cred.outputs.aws-session-token }}\")\nfi\n\nif [ ! -z \"${{ inputs.TF_LOG_PROVIDER }}\" ]; then\n  FLAGS=$(echo \"$FLAGS -e FEATURES_TERRAFORM_LOGPROVIDER=${{ inputs.TF_LOG_PROVIDER }}\")\nfi\n\ndocker run --rm \\\n$FLAGS \\\n-e FEATURES_TERRAFORM_MODULES='${{ inputs.FEATURES_TERRAFORM_MODULES }}' \\\n--entrypoint=/app/stackspot-runtime-job-destroy \\\n${{ inputs.CONTAINER_URL }} start --run-task-id=\"${{ inputs.RUN_TASK_ID }}\"\n","shell":"bash"}]},"branding":{"icon":"terminal","color":"orange"},"default_branch":"main","path":null},"repo_metadata":{"id":191903726,"uuid":"682232410","full_name":"stack-spot/runtime-destroy-action","owner":"stack-spot","description":"StackSpot Action to perform DESTROY Self Hosted run task processes","archived":false,"fork":false,"pushed_at":"2024-06-12T22:36:05.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-07-03T01:21:36.237Z","etag":null,"topics":["cloud-runtime","code","github-actions","maintain","self-hosted","stackspot"],"latest_commit_sha":null,"homepage":"https://www.stackspot.com/","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.md","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":"2023-08-23T18:21:07.000Z","updated_at":"2024-06-21T12:14:16.000Z","dependencies_parsed_at":"2023-09-01T12:56:17.007Z","dependency_job_id":"ba9a344c-d30a-457e-9164-b4f2455844aa","html_url":"https://github.com/stack-spot/runtime-destroy-action","commit_stats":null,"previous_names":["stack-spot/runtime-github-action-destroy","stack-spot/runtime-destroy-action"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stack-spot%2Fruntime-destroy-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stack-spot%2Fruntime-destroy-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stack-spot%2Fruntime-destroy-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stack-spot%2Fruntime-destroy-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stack-spot","download_url":"https://codeload.github.com/stack-spot/runtime-destroy-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":214268323,"owners_count":15708260,"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"},"owner_record":{"login":"stack-spot","name":"StackSpot","uuid":"80908571","kind":"organization","description":"Build applications with speed and confidence.","email":"contact@stackspot.com","website":"https://stackspot.com","location":"Brazil","twitter":"stackspot","company":null,"icon_url":"https://avatars.githubusercontent.com/u/80908571?v=4","repositories_count":40,"last_synced_at":"2023-03-05T08:58:45.379Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/stack-spot","funding_links":[],"total_stars":null,"followers":null,"following":null,"created_at":"2022-11-15T10:05:13.532Z","updated_at":"2023-03-05T08:58:45.382Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stack-spot","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stack-spot/repositories"},"tags":[{"name":"v2.2","sha":"1273d58354d3200bbce428d3c4598dcc4ea12df3","kind":"commit","published_at":"2024-05-21T18:02:19.000Z","download_url":"https://codeload.github.com/stack-spot/runtime-destroy-action/tar.gz/v2.2","html_url":"https://github.com/stack-spot/runtime-destroy-action/releases/tag/v2.2","dependencies_parsed_at":"2024-05-23T09:54:48.997Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stack-spot%2Fruntime-destroy-action/tags/v2.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stack-spot%2Fruntime-destroy-action/tags/v2.2/manifests"},{"name":"v2.1","sha":"de7669b98eb8db42ee322406516af9e958e2a826","kind":"commit","published_at":"2024-04-19T13:32:43.000Z","download_url":"https://codeload.github.com/stack-spot/runtime-destroy-action/tar.gz/v2.1","html_url":"https://github.com/stack-spot/runtime-destroy-action/releases/tag/v2.1","dependencies_parsed_at":"2024-04-24T17:02:13.809Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stack-spot%2Fruntime-destroy-action/tags/v2.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stack-spot%2Fruntime-destroy-action/tags/v2.1/manifests"},{"name":"v2","sha":"97be7a415b5cadfe59c49956b29b98f07d268485","kind":"commit","published_at":"2023-08-31T18:30:30.000Z","download_url":"https://codeload.github.com/stack-spot/runtime-destroy-action/tar.gz/v2","html_url":"https://github.com/stack-spot/runtime-destroy-action/releases/tag/v2","dependencies_parsed_at":"2023-09-07T04:24:57.184Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stack-spot%2Fruntime-destroy-action/tags/v2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stack-spot%2Fruntime-destroy-action/tags/v2/manifests"},{"name":"v1","sha":"0df83168f60c2bda96e534f8667371e4d182de5f","kind":"commit","published_at":"2023-08-31T15:33:26.000Z","download_url":"https://codeload.github.com/stack-spot/runtime-destroy-action/tar.gz/v1","html_url":"https://github.com/stack-spot/runtime-destroy-action/releases/tag/v1","dependencies_parsed_at":"2023-09-07T04:24:57.555Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stack-spot%2Fruntime-destroy-action/tags/v1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stack-spot%2Fruntime-destroy-action/tags/v1/manifests"}]},"repo_metadata_updated_at":"2024-08-07T03:00:53.047Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":2,"rankings":{"downloads":null,"dependent_repos_count":20.573601647916337,"dependent_packages_count":0.0,"stargazers_count":48.283948661067974,"forks_count":35.11646331801616,"docker_downloads_count":null,"average":25.99350340675012},"purl":"pkg:githubactions/stack-spot/runtime-github-action-destroy","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/actions/stack-spot/runtime-github-action-destroy","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/actions/stack-spot/runtime-github-action-destroy","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/actions/stack-spot/runtime-github-action-destroy/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":null,"versions_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/stack-spot%2Fruntime-github-action-destroy/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/stack-spot%2Fruntime-github-action-destroy/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/stack-spot%2Fruntime-github-action-destroy/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/stack-spot%2Fruntime-github-action-destroy/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/stack-spot%2Fruntime-github-action-destroy/codemeta","maintainers":[]}