Skip to content

Commit

Permalink
Add debug logging to Maven build step
Browse files Browse the repository at this point in the history
  • Loading branch information
aliceco01 committed Dec 10, 2024
1 parent 6e96665 commit 0f3d16d
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml.save
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI Pipeline

on:
push:
branches:
- main
pull_request:

jobs:
build-and-scan:
runs-on: ubuntu-latest

steps:
# Step 1: Check out the code
- name: Checkout code
uses: actions/checkout@v3

# Step 2: Set up Java (required for Maven)
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'

# Step 3: Build the project
- name: Build with Maven
run: mvn clean install

# Step 4: Run source code scan with Semgrep
- name: Run Semgrep
run: |
curl -sSL https://semgrep.dev/install.sh | sh
./semgrep scan --config=auto --json > semgrep-results.json

# Step 5: Upload scan report as an artifact
- name: Upload Semgrep report
uses: actions/upload-artifact@v3
with:
name: semgrep-report
path: semgrep-results.json


0 comments on commit 0f3d16d

Please sign in to comment.