-
Notifications
You must be signed in to change notification settings - Fork 3
69 lines (59 loc) · 1.65 KB
/
ci-github.yaml
File metadata and controls
69 lines (59 loc) · 1.65 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: CI GitHub Action
on:
workflow_dispatch:
push:
paths:
- 'github/**'
- '.github/workflows/ci-github.yaml'
branches: [ "main" ]
pull_request:
paths:
- 'github/**'
- '.github/workflows/ci-github.yaml'
branches: [ "main" ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
actions: read
contents: read
security-events: write
jobs:
check:
strategy:
matrix:
include:
- repo: spring-projects/spring-petclinic
sha: 30aab0ae764ad845b5eedd76028756835fec771f
java-version: 17
- repo: WebGoat/WebGoat
sha: 06c0be257f3ec5b02521368b030018816ac94090
java-version: 23
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: ${{ matrix.repo }}
path: project-root
ref: ${{ matrix.sha }}
fetch-depth: 0
- name: Sanitize artifact name
id: sanitize
run: |
SANITIZED_NAME=$(echo "${{ matrix.repo }}" | tr '/' '_')
echo "SANITIZED_NAME=${SANITIZED_NAME}" >> $GITHUB_OUTPUT
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '${{ matrix.java-version }}'
distribution: 'temurin'
- name: Run OpenTaint
uses: ./github
timeout-minutes: 7
with:
project-root: project-root
token: ${{ secrets.SEQRA_GITHUB_TOKEN }}
artifact-name: ${{ steps.sanitize.outputs.SANITIZED_NAME }}
debug: 'true'
opentaint-version : 'v0'