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
namespace API.Controllers | |
{ | |
public class GithubController : ApiController | |
{ | |
private const string _address = "https://api.github.com/users/tdshipley"; | |
private const string _userAgent = "TestApp"; | |
// GET api/<controller> | |
public async Task<string> Get() | |
{ |
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
passed="false" | |
failed="false" | |
while [ "$failed" == "false" ] && [ "$passed" == "false" ] && [ $tryCount -lt $maxWaitTime ] | |
do | |
tryCount=$((tryCount + 1)) | |
podLogs=$(kubectl logs --tail=80 pods/$runningPod) | |
case $podLogs in | |
*"Test run passed"*) passed="true";; |
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
tryCount=0 | |
runningPod="" | |
while [ "$runningPod" == "" ] && [ $tryCount -lt 12 ] | |
do | |
tryCount=$((tryCount + 1)) | |
echo "Searching for pod... try $tryCount of 12" | |
sleep 5 | |
runningPod="$(kubectl get pods --selector=job-name=$jobName --output=jsonpath={.items..metadata.name})" | |
done |
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
apiVersion: batch/v1 | |
kind: Job | |
metadata: | |
labels: | |
job-name: run-perf-test-latest-${VERSION} | |
name: run-perf-test-latest-${VERSION} | |
namespace: my-gcp-namespace | |
spec: | |
backoffLimit: 1 | |
completions: 1 |
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
{ | |
"app_name": "my_app_name", | |
"task_name": "OWASP Dependency Checker", | |
"mappings": [ | |
{ | |
"key": "alerts", | |
"properties": { | |
"description": "description", | |
"detail": "detail", | |
"source": "source", |
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
jq '{ | |
alerts: | |
[ .dependencies | | |
map(select(.vulnerabilities != null)) | | |
.[] | | |
. as $raw | | |
$raw | | |
$raw.vulnerabilities | | |
. as $vuln | | |
{ |
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
Thomass-MacBook-Pro:kotlin thomas$ sonar-scanner | |
<Redacted for brevity> | |
INFO: ANALYSIS SUCCESSFUL, you can browse http://localhost:9000/dashboard/index/4a27fa8c666747f6956d75ae63fb24b9 | |
INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report | |
INFO: More about the report processing at http://localhost:9000/api/ce/task?id=AWbpY5h5xoaTc7Huvu3D | |
INFO: Task total time: 4.403 s | |
INFO: ------------------------------------------------------------------------ | |
INFO: EXECUTION SUCCESS | |
INFO: ------------------------------------------------------------------------ | |
INFO: Total time: 5.628s |
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
#----- SonarQube server | |
sonar.host.url=http://localhost:9000 | |
#----- Project Key | |
sonar.projectKey=4a27fa8c666747f6956d75ae63fb24b9 | |
#----- Project Name | |
sonar.projectName=MyProjectName | |
#----- Project Version |
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
Thomass-MacBook-Pro:kotlin thomas$ docker container ls | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
68be74d0aa51 sonarqube "./bin/run.sh" About an hour ago Up About an hour 0.0.0.0:9000->9000/tcp, 0.0.0.0:9092->9092/tcp gracious_noyce |
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
Unable to find image 'sonarqube:latest' locally | |
latest: Pulling from library/sonarqube | |
bc9ab73e5b14: Pull complete | |
193a6306c92a: Pull complete | |
e5c3f8c317dc: Pull complete | |
a587a86c9dcb: Pull complete | |
a4c7ee7ef122: Pull complete | |
a7c0dad691e9: Pull complete | |
367a6a68b113: Pull complete | |
60c0e52d1ec2: Pull complete |
NewerOlder