Skip to content

Commit 725e926

Browse files
PRODSEC-1257 Whitesource Transition to Snyk (#308)
* PRODSEC-1257 Whitesource Transition to Snyk * add CLA * address feedback * minor update * formatting * CLA bot * Update .github/workflows/snyk-pr.yml Co-authored-by: Mark Keller <[email protected]>
1 parent 18f164c commit 725e926

File tree

4 files changed

+61
-207
lines changed

4 files changed

+61
-207
lines changed

.github/workflows/cla_bot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ jobs:
1919
path-to-signatures: 'signatures/version1.json'
2020
path-to-document: 'https://github.com/Snowflake-Labs/CLA/blob/main/README.md'
2121
branch: 'main'
22-
allowlist: 'dependabot[bot],github-actions'
22+
allowlist: 'dependabot[bot],github-actions, sfc-gh-snyk-sca-sa'
2323
remote-organization-name: 'snowflakedb'
2424
remote-repository-name: 'cla-db'

.github/workflows/snyk-issue.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Snyk Issue
2+
3+
on:
4+
schedule:
5+
- cron: '* */12 * * *'
6+
7+
concurrency: snyk-issue
8+
9+
jobs:
10+
snyk:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout Action
14+
uses: actions/checkout@v3
15+
with:
16+
repository: snowflakedb/whitesource-actions
17+
token: ${{ secrets.whitesource_action_token }}
18+
path: whitesource-actions
19+
- name: Set Env
20+
run: echo "repo=$(basename $github_repository)" >> $github_env
21+
- name: Jira Creation
22+
uses: ./whitesource-actions/snyk-issue
23+
with:
24+
snyk_org: ${{ secrets.snyk_org_id_public_repo }}
25+
snyk_token: ${{ secrets.snyk_github_integration_token_public_repo }}
26+
jira_token: ${{ secrets.jira_token_public_repo }}
27+
env:
28+
gh_token: ${{ secrets.github_token }}
29+

.github/workflows/snyk-pr.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Snyk PR
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
jobs:
7+
snyk:
8+
runs-on: ubuntu-latest
9+
if: ${{ github.event.pull_request.user.login == 'sfc-gh-snyk-sca-sa' }}
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
with:
14+
ref: ${{ github.event.pull_request.head.ref }}
15+
fetch-depth: 0
16+
17+
- name: Checkout Action
18+
uses: actions/checkout@v3
19+
with:
20+
repository: snowflakedb/whitesource-actions
21+
token: ${{ secrets.whitesource_action_token }}
22+
path: whitesource-actions
23+
24+
- name: Snyk Pull Request Scan Check
25+
uses: ./whitesource-actions/snyk-pr
26+
env:
27+
pr_title: ${{ github.event.pull_request.title }}
28+
with:
29+
jira_token: ${{ secrets.jira_token_public_repo }}
30+
gh_token: ${{ secrets.github_token }}
31+
amend: false

ci/wss.sh

Lines changed: 0 additions & 206 deletions
This file was deleted.

0 commit comments

Comments
 (0)