Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wordpress
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitLab
CI
wordpress
Merge requests
!15
Add GitLab's SAST pipeline
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add GitLab's SAST pipeline
add/sast
into
main
Overview
0
Commits
1
Pipelines
0
Changes
3
Merged
Erick Hitter
requested to merge
add/sast
into
main
2 years ago
Overview
0
Commits
1
Pipelines
0
Changes
3
Expand
https://git.ethitter.com/help/user/application_security/sast/index
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
24dee2d3
1 commit,
2 years ago
3 files
+
1
−
78
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
pantheon/default.yml deleted
100644 → 0
+
0
−
77
Options
stages
:
-
test
-
build
variables
:
GIT_SUBMODULE_STRATEGY
:
recursive
test-deps
:
stage
:
test
image
:
containers.ethitter.com:443/docker/images/php:7.3
before_script
:
-
git config --global user.email "$GIT_USER_EMAIL"
-
git config --global user.name "$GIT_USER_NAME"
# TODO: add build steps here once things are converted to submodules.
# TODO: add Terminus to handle pushes and cache clearing.
script
:
-
cd ${CI_PROJECT_DIR}
-
ls -la
-
rm -rf ${CI_PROJECT_DIR}/.git/
-
rm -rf ${CI_PROJECT_DIR}/.gitignore
-
rm -rf ${CI_PROJECT_DIR}/.gitmodules
-
rm -rf ${CI_PROJECT_DIR}/.gitlab-ci.yml
-
rm -rf ${CI_PROJECT_DIR}/README.md
-
rm -rf ${CI_PROJECT_DIR}/readme.txt
-
ls -la
-
git init
-
git status -s
-
git add -A
-
git status -s
-
git commit -m "Build from $CI_COMMIT_SHORT_SHA"
-
git diff --exit-code
-
git status -s
-
git log -n
1
git-push
:
stage
:
build
image
:
containers.ethitter.com:443/docker/images/php:7.3
only
:
-
main
allow_failure
:
false
before_script
:
-
'
which
ssh-agent
||
(
apt-get
update
-y
&&
apt-get
install
openssh-client
-y
)'
-
eval $(ssh-agent -s)
-
ssh-add <(echo "$GIT_SSH_PRIV_KEY")
-
git config --global user.email "$GIT_USER_EMAIL"
-
git config --global user.name "$GIT_USER_NAME"
-
mkdir -p ~/.ssh
-
echo "$SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts
-
ssh-keygen -R "$PANTHEON_GIT_HOST"
-
ssh-keyscan -t rsa -p "$PANTHEON_GIT_HOST_PORT" "$PANTHEON_GIT_HOST" >> ~/.ssh/known_hosts
# TODO: add build steps here once things are converted to submodules.
# TODO: add Terminus to handle pushes and cache clearing.
script
:
-
cd ${CI_PROJECT_DIR}
-
ls -la
-
rm -rf ${CI_PROJECT_DIR}/.git/
-
rm -rf ${CI_PROJECT_DIR}/.gitignore
-
rm -rf ${CI_PROJECT_DIR}/.gitmodules
-
rm -rf ${CI_PROJECT_DIR}/.gitlab-ci.yml
-
rm -rf ${CI_PROJECT_DIR}/README.md
-
rm -rf ${CI_PROJECT_DIR}/readme.txt
-
ls -la
-
git init
-
git checkout -b "$PANTHEON_GIT_BRANCH"
-
git remote add pantheon "$PANTHEON_GIT_REMOTE"
-
git status -s
-
git add -A
-
git status -s
-
git commit -m "Build from $CI_COMMIT_SHORT_SHA"
-
git diff --exit-code
-
git status -s
-
git log -n
1
-
git push --force pantheon "$PANTHEON_GIT_BRANCH"
Loading