Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PRODSEC-1265 Whitesource Transition to Snyk #932

Merged
merged 6 commits into from
Jun 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.