Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
seismic-dms-service
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSDU
OSDU Data Platform
Domain Data Management Services
Seismic
Seismic DMS Suite
seismic-dms-service
Commits
9c1fcbe6
Commit
9c1fcbe6
authored
2 years ago
by
Morris Estepa
Browse files
Options
Downloads
Patches
Plain Diff
ci: add git secrets
parent
8e13f39e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!519
ci: add git secrets
Pipeline
#135884
passed
2 years ago
Stage: build
Stage: containerize
Stage: scan
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/sdms/src/cloud/providers/aws/build-aws/buildspec.yaml
+9
-2
9 additions, 2 deletions
app/sdms/src/cloud/providers/aws/build-aws/buildspec.yaml
with
9 additions
and
2 deletions
app/sdms/src/cloud/providers/aws/build-aws/buildspec.yaml
+
9
−
2
View file @
9c1fcbe6
...
...
@@ -42,6 +42,10 @@ phases:
-
npm install
-
wget -nv https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.6.2.2472.zip
-
unzip -q ./sonar-scanner-cli-4.6.2.2472.zip
# Install git secrets
-
git clone https://github.com/awslabs/git-secrets.git
-
cd git-secrets && make install && cd ..
-
git secrets --install && git secrets --register-aws
pre_build
:
commands
:
...
...
@@ -62,13 +66,16 @@ phases:
-
mkdir -p ${OUTPUT_DIR}/testing && mkdir -p ${INTEGRATION_TEST_OUTPUT} && mkdir -p ${INTEGRATION_TEST_OUTPUT}/bin
-
echo "Placeholder" >> ${OUTPUT_DIR}/build-info.json
# touched so that the output directory has some content incase the build fails so that testing reports are uploaded
-
node_modules/.bin/tslint -c tslint.json 'src/cloud/providers/aws/**/*.ts'
-
GIT_SECRETS_SCAN_RESULT=$(git secrets --scan 2> ${OUTPUT_DIR}/git_secrets.out.txt && echo OK || echo FAILED)
-
if [ "$GIT_SECRETS_SCAN_RESULT" = "FAILED" ]; then echo "Secrets detected!" && exit 1; fi
-
node_modules/.bin/tslint -c tslint.json 'src/cloud/providers/aws/**/*.ts'
-
echo "Building seismic-store-service"
-
npm run build
# copy to tests folder for generating token for integration tests
-
cp ../../devops/scripts/aws_jwt_client.py tests/aws-test/build-aws/aws_jwt_client.py
-
cp devops/aws/requirements.txt tests/aws-test/build-aws/requirements.txt
-
cp devops/aws/requirements.txt tests/aws-test/build-aws/requirements.txt
-
echo "Building integration testing assemblies and gathering artifacts..."
-
chmod +x ./tests/aws-test/build-aws/prepare-dist.sh
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment