This file contains 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
name: CI | |
on: | |
pull_request: | |
branches: | |
- master | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: |
This file contains 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 json | |
import requests | |
gh_token = '<GITHUB_TOKEN>' | |
results = [] | |
params = {'page': 1, 'per_page':100} | |
another_page = True | |
api = 'https://api.github.com/orgs/<ORG>/repos' | |
while another_page: | |
r = requests.get(api, params=params, headers={'Authorization': 'token {}'.format(gh_token)}) |
This file contains 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 json | |
import requests | |
import os | |
import argparse | |
bb_username = 'MY_USERNAME' | |
bb_password = 'BITBUCKET_PASSWORD' | |
gh_token = 'GH_TOKEN' | |
project_name = 'PROJECT_NAME' |
This file contains 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
# Currently supports GET method but few modifications should make it universal. | |
# script.sh <METHOD> <URL> | |
# Note that this script isn't S3 upload compatible! | |
ACCESS_KEY="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" | |
SECRET_KEY="YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY" | |
DATE=$(date -u +"%Y%m%dT%H%M%SZ") | |
DATE_ONLY=$(date -u +"%Y%m%d") | |
REGION="us-east-1" | |
SERVICE="execute-api" | |
ALGORITHM="AWS4-HMAC-SHA256" |