You will need an access token from azure devops. Get yours here. This script will need contributor access to the project in question.
# populate user map in Map-IssueToWorkitem| "Initial Access","Execution","Persistence","Privilege Escalation","Defense Evasion","Credential Access","Discovery","Lateral Movement","Exfiltration","Impact" | |
| ConsoleLogin,StartInstance,CreateAccessKey,CreateGroup,StopLogging,GetSecretValue,ListUsers,AssumeRole,CreateSnapShot,PutBucketVersioning | |
| PasswordRecoveryRequested,StartInstances,CreateUser,CreateRole,DeleteTrail,GetPasswordData,ListRoles,SwitchRole,ModifySnapshotAttributes ,RunInstances | |
| ,Invoke,CreateNetworkAclEntry,UpdateAccessKey,UpdateTrail,RequestCertificate,ListIdentities,,ModifyImageAttribute,DeleteAccountPublicAccessBlock | |
| ,SendCommand,CreateRoute,PutGroupPolicy,PutEventSelectors,UpdateAssumeRolePolicy,ListAccessKeys,,SharedSnapshotCopyInitiated, | |
| ,,CreateLoginProfile,PutRolePolicy,DeleteFlowLogs,,ListServiceQuotas,,SharedSnapshotVolumeCreated, | |
| ,,AuthorizeSecurityGroupEgress,PutUserPolicy,DeleteDetector,,ListInstanceProfiles,,ModifyDBSnapshotAttribute, | |
| ,,AuthorizeSecurityGroupIngress,AddRoleToInstanceProfile,DeleteMembers,,ListBuckets,,PutBucketP |
| build: | |
| stage: build | |
| image: docker:19.03.11 | |
| services: | |
| - docker:19.03.11-dind | |
| variables: | |
| DOCKER_IMAGE: my-image-repository.com/my-image | |
| script: | |
| - docker pull ${DOCKER_IMAGE}:latest || true | |
| - docker build |
You will need an access token from azure devops. Get yours here. This script will need contributor access to the project in question.
# populate user map in Map-IssueToWorkitem| #!/usr/bin/env bash | |
| set -euo pipefail | |
| ID=$(uuidgen) | |
| LOCATION=westus | |
| RG=terraformrg | |
| # Create unique name for storage account | |
| STORAGE_ACCOUNT=$(echo "terraform-${ID}" | tr '[:upper:]' '[:lower:]' | sed 's/-//g' | cut -c1-24) |
| #!/usr/bin/perl | |
| # | |
| # Script to download/clone all of your Github repos | |
| # | |
| # Copyright Nicholas Humfrey, 22nd August 2017 | |
| # | |
| # License: http://unlicense.org | |
| # | |
| use JSON; |
| #!/bin/bash | |
| HELM_TILLER_SA=tiller | |
| HELM_TILLER_NS=kube-system | |
| tiller_tls() { | |
| [ ! -f tiller-ca.crt ] && \ | |
| openssl req -x509 -new -newkey rsa:2048 -keyout tiller-ca.key -nodes -sha256 -days 3650 -out tiller-ca.crt -subj "/CN=tiller-ca" | |
| [ ! -f tiller.crt ] && { | |
| echo subjectAltName=IP:127.0.0.1 > extfile.cnf |
| #!/bin/bash | |
| if [ -z "$1" ]; then | |
| echo "waiting for the following arguments: username + max-page-number" | |
| exit 1 | |
| else | |
| name=$1 | |
| fi | |
| if [ -z "$2" ]; then |
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| "strings" | |
| "time" | |
| ) | |
| func printFatal(e error) { |