Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bulk-delete-github-environments

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bulk-delete-github-environments - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

2

package.json
{
"name": "bulk-delete-github-environments",
"type": "module",
"version": "1.0.5",
"version": "1.0.6",
"description": "Bulk delete github environments",

@@ -6,0 +6,0 @@ "author": "Zuplo, Inc.",

@@ -7,31 +7,9 @@ # Bulk Delete Github Environments

1. Clone this repository:
You will need to create a Github Personal Access Token with the `repo` scope and set it as the `GITHUB_ACCESS_TOKEN` environment variable. As of writing you cannot use Github fine-grained tokens.
```bash
git clone https://github.com/zuplo/zuplo
```
Set the `GITHUB_ORG` and `GITHUB_REPO` environment variables to the organization and repository you want to delete environments from.
2. Install the dependencies:
```bash
npm install
GITHUB_ACCESS_TOKEN=ghp_****** GITHUB_ORG=my-org GITHUB_REPO=my-repo \
npx bulk-delete-github-environments@latest
```
3. Set Environment Variables
Copy the `.env.example` file in this directory to `.env` and fill in the required variables.
You will need to create a Github Personal Access Token with the `repo` scope and set it as the `GITHUB_TOKEN` value. As of writing you cannot use Github fine-grained tokens.
4. Run the script:
```bash
npm start
```
You should see output like this:
```
Deleting environment: my-env...
Deleted environment: my-env2...
```

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc