This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AWSTemplateFormatVersion: 2010-09-09 | |
Parameters: | |
KeyName: | |
Type: 'AWS::EC2::KeyPair::KeyName' | |
Description: Name of an existing EC2 KeyPair to enable SSH access to the ECS instances. | |
VpcId: | |
Type: 'AWS::EC2::VPC::Id' | |
Description: Select a VPC that allows instances to access the Internet. | |
SubnetId: | |
Type: 'List<AWS::EC2::Subnet::Id>' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This script goes through all of your organizations in a group and deletes all Snyk Code projects. | |
Please create a .env file in the same directory as this script and add the following variables: | |
SNYK_TOKEN = your_snyk_token | |
GROUP_ID = your_group_id | |
Afterwards, use a version of Python that is at least 3.7. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This script goes through all of your organizations in a group and deletes anything that is not active. | |
Please create a .env file in the same directory as this script and add the following variables: | |
SNYK_TOKEN = your_snyk_token | |
GROUP_ID = your_group_id | |
Afterwards, use a version of Python that is at least 3.7. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import httpx | |
import logging | |
from dotenv import dotenv_values | |
logging.basicConfig(level=logging.INFO, format="%(asctime)s - %(levelname)s - %(message)s") | |
CONFIG = dotenv_values() | |
def create_client(base_url: str) -> httpx.Client: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Requires a .env file in the directory where this file is run. | |
.env file should contain these: | |
SNYK_TOKEN=TOKEN | |
ORG_ID=ORG_ID_GUID | |
Output will be displayed in a log file: main.log. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"public": [ | |
{ | |
"//": "used for pushing up webhooks from Azure", | |
"method": "POST", | |
"path": "/webhook/azure-repos/:webhookId" | |
} | |
], | |
"private": [ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"public": [ | |
{ | |
"//": "used for pushing up webhooks from Azure", | |
"method": "POST", | |
"path": "/webhook/azure-repos/:webhookId" | |
} | |
], | |
"private": [ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"public": [ | |
{ | |
"//": "used for pushing up webhooks from bitbucket-server", | |
"method": "POST", | |
"path": "/webhook/bitbucket-server/:webhookId" | |
} | |
], | |
"private": [ | |
{ |