-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (31 loc) · 1 KB
/
main.yml
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
name: Basic test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
- name: Build the images
run: |
./build_images.sh
- name: Run the exploit lab using the bash script
run: |
./run_containers.sh
./delete_containers.sh
- name: Test the exploit lab using the python cli (java8) [Non vulnerable]
run: |
python log4shell_validator.py --java-version 8 --log4j-version 2.12.2
- name: Test the exploit lab using the python cli (java8) [vulnerable]
run: |
python log4shell_validator.py --java-version 8 --log4j-version 2.12.1