-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcalling-workflow-example.yml
More file actions
32 lines (27 loc) · 1.01 KB
/
calling-workflow-example.yml
File metadata and controls
32 lines (27 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Security Scan
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
workflow_dispatch:
jobs:
security:
uses: rundeck-plugins/.github/.github/workflows/snyk-scan-reusable.yml@main
with:
# Optional: Java version for build environment (default: '17')
# Supported versions: 8, 11, 17, 21
java-version: '17'
# Optional: Java distribution (default: 'zulu')
# Options: temurin, zulu, adopt, corretto, microsoft, etc.
java-distribution: 'zulu'
# Optional: Snyk detection depth (default: '10')
# Higher values scan deeper but take longer
snyk-detection-depth: '10'
# Optional: GitHub runner type (default: 'ubuntu-latest')
# Note: Only Ubuntu runners are supported (workflow uses Linux Snyk CLI)
runs-on: 'ubuntu-latest'
secrets:
# Organization secrets - automatically available to all repos
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
SNYK_ORG_ID: ${{ secrets.SNYK_ORG_ID }}