Skip to content

chore(deps): update dependency com.composum.nodes:composum-nodes-commons to v4.3.1 #510

chore(deps): update dependency com.composum.nodes:composum-nodes-commons to v4.3.1

chore(deps): update dependency com.composum.nodes:composum-nodes-commons to v4.3.1 #510

Workflow file for this run

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Java CI with Maven
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
name: maven-build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Set up JDK 17
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven
server-id: github.pospai.snapshots
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Cache local Maven repository
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}-${{ hashFiles('launcher/src/main/features/**/*.json') }}
restore-keys: |
${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
${{ runner.os }}-maven-
- name: Build with Maven
run: mvn -B verify -P container,ci --file pom.xml
env:
MAVEN_USERNAME: rombert
MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
- name: Save container logs
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4
if: always()
with:
name: container-logs
path: |
container/target/docker-pospai.log
- name: Run Trivy
uses: aquasecurity/trivy-action@062f2592684a31eb3aa050cc61e7ca1451cecd3d # 0.18.0
with:
image-ref: 'rombert/pospai:latest'
format: 'table'
# exit-code: '1' TODO - enable once we get get no errors
ignore-unfixed: true
severity: 'CRITICAL,HIGH'
- name: Login to DockerHub
if: ${{ github.ref == 'refs/heads/master' }}
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push container image to DockerHub
if: ${{ github.ref == 'refs/heads/master' }}
run: mvn -f container/pom.xml docker:push