-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #286 from IBM-Cloud/release-v0.8.0-promotion
Release v0.8.0 promotion
- Loading branch information
Showing
31 changed files
with
1,368 additions
and
83 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
language: go | ||
dist: bionic | ||
go: | ||
- '1.16.x' | ||
- '1.17.x' | ||
addons: | ||
apt: | ||
packages: | ||
- python3 | ||
- python3-pip | ||
- python3-setuptools | ||
|
||
env: | ||
global: | ||
- GO111MODULE="off" | ||
|
||
before_install: | ||
- sudo apt-get update && sudo apt-get upgrade -y openssl | ||
|
||
install: | ||
# Required to install detect-secrets | ||
- sudo chmod o+rwx /usr/lib/python3/dist-packages/ | ||
- python3 -m pip install -U pip | ||
- pip3 install --upgrade "git+https://github.com/ibm/detect-secrets.git@master#egg=detect-secrets" | ||
- go get -u github.com/kardianos/govendor | ||
|
||
before_script: | ||
- bin/detect_secrets.sh | ||
- govendor sync | ||
|
||
script: | ||
- go test $(go list ./... | grep -v "plugin_examples" | grep -v "vendor") |
Validating CODEOWNERS rules …
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Global repo owners | ||
* @jorge-ibm @steveclay @boyang9527 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/env python3 | ||
import subprocess | ||
import json | ||
|
||
print(subprocess.run(['detect-secrets', 'scan', '--update', '.secrets.baseline'])) | ||
|
||
found_secrets = [] | ||
|
||
with open('.secrets.baseline', 'r') as f: | ||
baseline = json.loads(f.read()) | ||
for file, secrets in baseline['results'].items(): | ||
for secret in secrets: | ||
if secret.get('is_secret', True): | ||
found_secrets.append((file, secret)) | ||
|
||
if found_secrets: | ||
print('Secrets were found in the source code!') | ||
print('If these contain false positives, they can be marked as such with the `detect-secrets audit .secrets.baseline` command and committing the updated baseline file into the application repo.') | ||
print('Read more about the tool at https://github.com/ibm/detect-secrets\n\n') | ||
print('FOUND SECRETS:') | ||
for secret in found_secrets: | ||
print('File: ' + secret[0] + ' Line: ' + str(secret[1]['line_number']) + ' Type: ' + secret[1]['type']) | ||
print('failure') | ||
exit(1) | ||
else: | ||
print('NO SECRETS FOUND') | ||
print('success') |
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
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
Oops, something went wrong.