This repository was archived by the owner on Apr 27, 2026. It is now read-only.
feat(script): expand diagnostic levels and enhance output #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build CVE-2017-5638 Struts2 Backend | |
| on: | |
| push: | |
| paths: | |
| - "simulation/backend/**" | |
| - ".github/workflows/build-backend.yml" | |
| pull_request: | |
| paths: | |
| - "simulation/backend/**" | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| name: Maven Package (Java 11) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 11 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: "11" | |
| distribution: "temurin" | |
| cache: maven | |
| - name: Build with Maven | |
| working-directory: simulation/backend | |
| run: mvn --batch-mode package -DskipTests | |
| - name: Upload WAR artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: struts2-demo-war | |
| path: simulation/backend/target/*.war | |
| retention-days: 14 |