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
try { | |
$xml = Get-Content (Join-Path $PSScriptRoot ".\bom.xml") -Raw | |
$ProjectGuid = "d78bc750-d6db-4805-9836-5d77075ec37a" | |
$ApiKey = "6Ue2f8uVfRiVGpdowjWfF3yW02ryA7Uc" | |
$Uri = "http://localhost:8080" | |
$Body = ([PSCustomObject] @{ | |
project = $ProjectGuid | |
bom = ([Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes($xml))) |
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
docker pull owasp/dependency-track | |
docker volume create --name dependency-track | |
docker run -d -m 8192m -p 8080:8080 --name dependency-track -v dependency-track:/data owasp/dependency-track |
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
try { | |
Set-Location $PSScriptRoot | |
$ProjectGuid = "d78bc750-d6db-4805-9836-5d77075ec37a" | |
$ApiKey = "6Ue2f8uVfRiVGpdowjWfF3yW02ryA7Uc" | |
$Uri = "http://localhost:8080/api/v1/bom" | |
$FileName = "bom.xml" | |
$ContentType = "multipart/form-data" |
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
# Adding a Team Administrator | |
# credits: David https://stackoverflow.com/questions/59829312/how-to-add-team-administrator-using-azure-cli/60062489 | |
$myOrg = "https://dev.azure.com/<<your org>>/" | |
$newTeam = "Test Team" | |
$newAdmin = "<<user email>>" | |
$myProject = "Boards Demo" | |
echo $env:PAT | az devops login --organization $myOrg |