Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ww #551

Open
wants to merge 25 commits into
base: main
Choose a base branch
from
Open

ww #551

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
e03a9d2
fix: todolist-goof/Dockerfile to reduce vulnerabilities
snyk-bot Oct 27, 2024
b66d5f3
Merge pull request #1 from MimiDas-Snyk/snyk-fix-b2ad98f18e8bef0a0eef…
MimiDas-Snyk Oct 27, 2024
37634a5
fix: todolist-goof/Dockerfile to reduce vulnerabilities
snyk-bot Oct 27, 2024
d00ec6d
Merge pull request #2 from MimiDas-Snyk/snyk-fix-0c862408dc0a38ec63d8…
MimiDas-Snyk Oct 27, 2024
e6327cc
Create main.yml
MimiDas-Snyk Oct 31, 2024
e8af2d9
Update README.md
MimiDas-Snyk Oct 31, 2024
897c510
fix: todolist-goof/todolist-web-struts/pom.xml to reduce vulnerabilities
snyk-bot Nov 15, 2024
6f94dc2
Merge pull request #10 from MimiDas-Snyk/snyk-fix-23b90a21455065a8b85…
MimiDas-Snyk Nov 15, 2024
b658064
Update main.yml
MimiDas-Snyk Jan 8, 2025
9042933
Create snyk-GHA-sharedaction-java-goof
MimiDas-Snyk Jan 9, 2025
4f207b5
Update README.md
MimiDas-Snyk Jan 9, 2025
0f12e6b
Update main.yml
MimiDas-Snyk Jan 9, 2025
324cf9a
Update main.yml
MimiDas-Snyk Jan 9, 2025
db1d05f
Delete .github/workflows/snyk-GHA-sharedaction-java-goof
MimiDas-Snyk Jan 9, 2025
5241c75
Create snyk-GHA-sharedaction-java-goof.yml
MimiDas-Snyk Jan 9, 2025
572cba9
Update main.yml
MimiDas-Snyk Jan 9, 2025
a60cb96
Update main.yml
MimiDas-Snyk Jan 9, 2025
a9b02e5
Update snyk-GHA-sharedaction-java-goof.yml
MimiDas-Snyk Jan 10, 2025
f218430
Update main.yml
MimiDas-Snyk Jan 13, 2025
4f1cccb
Update main.yml
MimiDas-Snyk Jan 13, 2025
d58317f
Update main.yml
MimiDas-Snyk Jan 13, 2025
7e7f7be
Update main.yml
MimiDas-Snyk Jan 13, 2025
952317b
Update main.yml
MimiDas-Snyk Jan 13, 2025
3435aa0
Update main.yml
MimiDas-Snyk Jan 13, 2025
4eb907c
Update main.yml
MimiDas-Snyk Jan 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Snyk CLI Scanss

on:
push:
branches: [ main ]
# pull_request:
# branches: [ main ]
#

jobs:
snyk-pipeline:
runs-on: ubuntu-latest
name: Snyk CLI Scans
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Download Snyk
run: |
wget -O snyk https://static.snyk.io/cli/latest/snyk-linux
chmod +x ./snyk
mv ./snyk /usr/local/bin/

- name: Authenticate Snyk
run: snyk auth ${SNYK_TOKEN}

- name: Run Snyk Code
run: snyk code test --sarif-file-output=snyk_sast_results.json
continue-on-error: true

- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: snyk_sast_results.json

- name: Use the Upload Artifact GitHub Action
uses: actions/upload-artifact@v3
with:
name: snyk_sast_results_json
path: snyk_sast_results.json

- name: Install packages
run: mvn install

- name: Run Snyk Test
run: snyk test --all-projects
continue-on-error: true

- name: Run Snyk Monitor
run: snyk monitor --all-projects
continue-on-error: true
15 changes: 15 additions & 0 deletions .github/workflows/snyk-GHA-sharedaction-java-goof.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Snyk Scan (External Shared Action)

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
monitor:
uses: mimidas-snyk/snyk-shared-action/.github/workflows/snyk-node-shared-action.yml@main
with:
SNYK_ORG: dc9e71be-cc1d-4b7a-87bf-6640adf930ee
secrets:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ It's divided into modules, each one having its own README:

* [Todolist Goof](todolist-goof/README.md)
* [Log4Shell Goof](log4shell-goof/README.md)
* [Quickstart for running both Todolist with Log4Shell in Kubernetes](README-K8S.md)
* [Quickstart for running both Todolist with Log4Shell in Kubernetes](README-K8S.md)
2 changes: 1 addition & 1 deletion todolist-goof/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ COPY todolist-web-common todolist-web-common
COPY todolist-web-struts todolist-web-struts
RUN --mount=target=$HOME/.m2,type=cache mvn install

FROM tomcat:8.5.21
FROM tomcat:9.0.95-jdk8-corretto-al2

RUN mkdir /tmp/extracted_files
COPY web.xml /usr/local/tomcat/conf/web.xml
Expand Down
2 changes: 1 addition & 1 deletion todolist-goof/todolist-web-struts/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.7</version>
<version>2.12.2</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
Expand Down