2022-12-14 15:12:23 +00:00
|
|
|
name: Snyk
|
|
|
|
|
2023-06-01 07:03:09 +00:00
|
|
|
on:
|
2022-12-14 15:12:23 +00:00
|
|
|
workflow_dispatch:
|
|
|
|
|
2023-12-05 07:30:11 +00:00
|
|
|
env:
|
|
|
|
MAVEN_ARGS: "-B -nsu -Daether.connector.http.connectionMaxTtl=25"
|
|
|
|
|
2022-12-14 15:12:23 +00:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: bash
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
analysis:
|
|
|
|
name: Analysis of Quarkus and Operator
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: github.repository == 'keycloak/keycloak'
|
|
|
|
steps:
|
2023-09-06 11:40:06 +00:00
|
|
|
- uses: actions/checkout@v4
|
2022-12-14 15:12:23 +00:00
|
|
|
|
|
|
|
- name: Build Keycloak
|
|
|
|
uses: ./.github/actions/build-keycloak
|
|
|
|
|
|
|
|
- uses: snyk/actions/setup@master
|
|
|
|
|
|
|
|
- name: Check for vulnerabilities in Quarkus
|
2024-05-13 21:59:55 +00:00
|
|
|
run: snyk test --policy-path=${GITHUB_WORKSPACE}/.github/snyk/.snyk --all-projects --prune-repeated-subdependencies --exclude=tests --json quarkus/deployment | .github/scripts/snyk-report.sh
|
2022-12-14 15:12:23 +00:00
|
|
|
continue-on-error: true
|
|
|
|
env:
|
2024-05-13 21:59:55 +00:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2022-12-14 15:12:23 +00:00
|
|
|
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
|
|
|
|
|
|
|
|
- name: Check for vulnerabilities in Operator
|
2023-01-27 06:42:36 +00:00
|
|
|
run: |
|
2023-12-05 07:30:11 +00:00
|
|
|
./mvnw -Poperator -pl operator -am -DskipTests clean install
|
2024-05-13 21:59:55 +00:00
|
|
|
snyk test --policy-path=${GITHUB_WORKSPACE}/.github/snyk/.snyk --all-projects --prune-repeated-subdependencies --exclude=tests --json operator | .github/scripts/snyk-report.sh
|
2022-12-14 15:12:23 +00:00
|
|
|
continue-on-error: true
|
|
|
|
env:
|
2024-05-13 21:59:55 +00:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2022-12-14 15:12:23 +00:00
|
|
|
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
|