Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
33 changes: 33 additions & 0 deletions .github/workflows/maven-mend-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Mend CLI scan for Maven PR

on:
workflow_run: # zizmor: ignore[dangerous-triggers]
workflows: ["Java CI with Maven"]
types: [completed]
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed

permissions:
contents: read
actions: read
checks: write
pull-requests: write
security-events: write

concurrency:
group: mend-scan-${{ github.event.workflow_run.pull_requests[0].number || github.event.workflow_run.head_sha }}
cancel-in-progress: true

jobs:
scan:
if: github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'pull_request'
uses: project-ncl/shared-github-actions/.github/workflows/mend-ci.yml@153b97777335953545bc8a907eb5f062af66b7f2 # v0.0.18
with:
SCA: true
SAST: true
triggering_run_id: ${{ github.event.workflow_run.id }}
pr_feedback: true
secrets:
MEND_URL: ${{ secrets.MEND_URL }}
MEND_USER_KEY: ${{ secrets.MEND_USER_KEY }}
MEND_EMAIL: ${{ secrets.MEND_EMAIL }}
MEND_ORGNAME: ${{ secrets.MEND_ORGNAME }}
MEND_PRODUCTNAME: ${{ secrets.MEND_PRODUCTNAME }}
34 changes: 34 additions & 0 deletions .github/workflows/maven-mend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Mend CLI scan for Maven

on:
push:
branches:
- master
schedule:
- cron: "0 22 * * 0"

permissions:
contents: read
actions: read
checks: write
Comment thread
patrikk0123 marked this conversation as resolved.
Dismissed
pull-requests: write
Comment thread
patrikk0123 marked this conversation as resolved.
Dismissed
security-events: write
Comment thread
patrikk0123 marked this conversation as resolved.
Dismissed

jobs:
build:
uses: project-ncl/shared-github-actions/.github/workflows/maven-ci.yml@153b97777335953545bc8a907eb5f062af66b7f2 # v0.0.18
with:
upload_artifacts: true

call-mend-ci:
needs: build
uses: project-ncl/shared-github-actions/.github/workflows/mend-ci.yml@153b97777335953545bc8a907eb5f062af66b7f2 # v0.0.18
with:
SCA: true
SAST: true
secrets:
MEND_URL: ${{ secrets.MEND_URL }}
MEND_USER_KEY: ${{ secrets.MEND_USER_KEY }}
MEND_EMAIL: ${{ secrets.MEND_EMAIL }}
MEND_ORGNAME: ${{ secrets.MEND_ORGNAME }}
MEND_PRODUCTNAME: ${{ secrets.MEND_PRODUCTNAME }}
6 changes: 4 additions & 2 deletions .github/workflows/maven-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@

name: Java CI with Maven

permissions: {}
permissions:
contents: read

on:
pull_request:
branches: [ "*" ]

jobs:
call-maven-ci:
uses: project-ncl/shared-github-actions/.github/workflows/maven-ci.yml@2d927763b5bcdd30dead156c32649470cc2b2aa3 # v0.0.17
uses: project-ncl/shared-github-actions/.github/workflows/maven-ci.yml@153b97777335953545bc8a907eb5f062af66b7f2 # v0.0.18
with:
java_version: 17
upload_artifacts: true
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<groupId>org.jboss</groupId>
<artifactId>jboss-parent</artifactId>
<version>53</version>
<relativePath />
<relativePath/>
</parent>

<groupId>org.jboss.da</groupId>
Expand Down Expand Up @@ -98,7 +98,7 @@
<version.io.opentelemetry.instrumentation>2.27.0</version.io.opentelemetry.instrumentation>

<persistence.hibernate.hbm2ddl.auto>update</persistence.hibernate.hbm2ddl.auto>
<tagSuffix />
<tagSuffix/>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -557,7 +557,7 @@
<version>3.4.0</version>
<configuration>
<java>
<removeUnusedImports />
<removeUnusedImports/>
<importOrder>
<file>java-import-order.txt</file>
</importOrder>
Expand Down