Skip to content

Commit

Permalink
Merge pull request #932 from snowflakedb/PRODSEC-1265
Browse files Browse the repository at this point in the history
PRODSEC-1265 Whitesource Transition to Snyk
  • Loading branch information
sfc-gh-jfan authored Jun 21, 2022
2 parents d72f05f + cdd34ea commit b13b144
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 294 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/snyk-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Snyk Issue

on:
schedule:
- cron: '* */12 * * *'

concurrency: snyk-issue

jobs:
whitesource:
runs-on: ubuntu-latest
steps:
- name: checkout action
uses: actions/checkout@v3
with:
repository: snowflakedb/whitesource-actions
token: ${{ secrets.WHITESOURCE_ACTION_TOKEN }}
path: whitesource-actions
- name: set-env
run: echo "REPO=$(basename $GITHUB_REPOSITORY)" >> $GITHUB_ENV
- name: Jira Creation
uses: ./whitesource-actions/snyk-issue
with:
snyk_org: ${{ secrets.SNYK_ORG_ID_PUBLIC_REPO }}
snyk_token: ${{ secrets.SNYK_GITHUB_INTEGRATION_TOKEN }}
jira_token: ${{ secrets.JIRA_TOKEN_PUBLIC_REPO }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
name: whitesource
name: snyk-pr
on:
pull_request:
branches:
- master
jobs:
whitesource:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.user.login == 'whitesource-for-github-com[bot]' }}
if: ${{ github.event.pull_request.user.login == 'sfc-gh-snyk-sca-sa' }}
steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0

- name: checkout action
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
repository: snowflakedb/whitesource-actions
token: ${{ secrets.WHITESOURCE_ACTION_TOKEN }}
path: whitesource-actions

- name: PR
uses: ./whitesource-actions/whitesource-pr
uses: ./whitesource-actions/snyk-pr
env:
PR_TITLE: ${{ github.event.pull_request.title }}
with:
jira_token: ${{ secrets.JIRA_TOKEN_PUBLIC_REPO }}
gh_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
26 changes: 0 additions & 26 deletions .github/workflows/whitesource-issue.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .whitesource

This file was deleted.

1 change: 0 additions & 1 deletion ci/container/build_component.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ JDBC_ROOT=$(cd "${THIS_DIR}/../../" && pwd)
cd $JDBC_ROOT
rm -f lib/*.jar
mvn clean install --batch-mode --show-version
[[ -n "$WHITESOURCE_API_KEY" ]] && $THIS_DIR/wss.sh

cd FIPS
rm -f lib/*.jar
Expand Down
185 changes: 0 additions & 185 deletions ci/container/wss.sh

This file was deleted.

58 changes: 0 additions & 58 deletions whitesource.config

This file was deleted.

0 comments on commit b13b144

Please sign in to comment.