{"id":21304876,"url":"https://github.com/parasoft/destroy-environment-action","last_synced_at":"2025-08-24T14:20:06.597Z","repository":{"id":37124670,"uuid":"329993786","full_name":"parasoft/destroy-environment-action","owner":"parasoft","description":"A GitHub Action for destroying a temporary service virtualization environment in a remote Parasoft Continuous Testing Platform","archived":false,"fork":false,"pushed_at":"2023-01-25T03:05:31.000Z","size":519,"stargazers_count":7,"open_issues_count":6,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-23T11:54:40.355Z","etag":null,"topics":["api","ctp","destroy","environment","parasoft","service","testing","virtualization","virtualize"],"latest_commit_sha":null,"homepage":"https://www.parasoft.com/","language":"TypeScript","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/parasoft.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}},"created_at":"2021-01-15T18:38:15.000Z","updated_at":"2024-09-09T02:50:48.000Z","dependencies_parsed_at":"2023-02-14T04:15:45.588Z","dependency_job_id":null,"html_url":"https://github.com/parasoft/destroy-environment-action","commit_stats":{"total_commits":48,"total_committers":5,"mean_commits":9.6,"dds":0.375,"last_synced_commit":"d743e3bbffd5ff59a19764ae27b8b4c0bed6d4e8"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/parasoft/destroy-environment-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parasoft%2Fdestroy-environment-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parasoft%2Fdestroy-environment-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parasoft%2Fdestroy-environment-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parasoft%2Fdestroy-environment-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parasoft","download_url":"https://codeload.github.com/parasoft/destroy-environment-action/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parasoft%2Fdestroy-environment-action/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264902096,"owners_count":23680992,"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":["api","ctp","destroy","environment","parasoft","service","testing","virtualization","virtualize"],"created_at":"2024-11-21T16:16:15.491Z","updated_at":"2025-07-11T21:30:51.372Z","avatar_url":"https://github.com/parasoft.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/parasoft/destroy-environment-action/actions\"\u003e\u003cimg alt=\"typescript-action status\" src=\"https://github.com/actions/typescript-action/workflows/build-test/badge.svg\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# Destroy an Environment\n\nThis action allows you to destroy a Parasoft service virtualization environment in a given Continous Testing Platform endpoint.\n\n## Usage\n\nAdd the following entry to your Github workflow YAML file with the required inputs: \n\n```yaml\nuses: parasoft/destroy-environment-action@v1\nwith:\n  ctpUrl: 'http://exampleUrl'\n  ctpUsername: 'username'\n  ctpPassword: ${{ secrets.password }}\n  system: 'system'\n  environment: 'environment'\n```\n### Required Inputs\nThe following inputs are required to use this action:\n\n| Input | Description |\n| --- | --- |\n| `ctpURL` | Specifies the Continuous Testing Platform endpoint where the environment you want to destroy is deployed. |\n| `ctpUsername` | Specifies a user name for accessing the Continuous Testing Platform endpoint. |\n| `ctpPassword` | Specifies a Github encrypted secret for accessing the Continuous Testing Platform endpoint. Refer to the [Encrypted Secrets Documentation](https://docs.github.com/en/actions/reference/encrypted-secrets) for details on how to create an encrypted secret. |\n| `system` | Specifies the name of the system in Continous Testing Platform that contains the environment you want to destroy. |\n| `environment` | Specifies the name of the environment that you want to destroy. If you deployed a replicated environment, this value should match the value specified with `newEnvironmentName` in the [deploy-environment-action](https://github.com/parasoft/deploy-environment-action). |\n\n## Build and Test this Action Locally\n\n1. Install the dependencies: \n\n```bash\n$ npm install\n```\n\n2. Build the typescript and package it for distribution: \n\n```bash\n$ npm run build \u0026\u0026 npm run package\n```\n\n3. Run the tests:\n\n```bash\n$ npm test\n\n PASS  ./index.test.js\n\n...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparasoft%2Fdestroy-environment-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparasoft%2Fdestroy-environment-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparasoft%2Fdestroy-environment-action/lists"}