Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
40d4e86
update github action to build on tag
dschwartz-ftadvisory May 19, 2025
3f83cc4
update github action
dschwartz-ftadvisory May 19, 2025
9e313a0
Update build-and-test-main.yml
dschwartz-ftadvisory May 19, 2025
38eefb5
update github actions
dschwartz-ftadvisory May 19, 2025
67e3888
Update create-tagged-release.yml
dschwartz-ftadvisory May 19, 2025
37ad1a9
Update create-tagged-release.yml
dschwartz-ftadvisory May 19, 2025
edd4ae3
Update create-tagged-release.yml
dschwartz-ftadvisory May 19, 2025
2f1a4d6
update create-tagged-release
dschwartz-ftadvisory May 19, 2025
c69bdf2
Update create-tagged-release.yml
dschwartz-ftadvisory May 19, 2025
8a9304f
Update create-tagged-release.yml
dschwartz-ftadvisory May 19, 2025
48fa2fe
Update create-tagged-release.yml
dschwartz-ftadvisory May 19, 2025
c527ac7
Update create-tagged-release.yml
dschwartz-ftadvisory May 19, 2025
969f7b6
Update create-tagged-release.yml
dschwartz-ftadvisory May 19, 2025
ea89bf6
Update create-tagged-release.yml
dschwartz-ftadvisory May 19, 2025
02300a4
Update create-tagged-release.yml
dschwartz-ftadvisory May 19, 2025
799c3b6
Update create-tagged-release.yml
dschwartz-ftadvisory May 19, 2025
96e6abc
added script to cleanup github actions
dschwartz-ftadvisory May 19, 2025
dc88ab8
update artifact in POM
dschwartz-ftadvisory May 20, 2025
dc3a386
clean up typo in README
dschwartz-ftadvisory May 20, 2025
a53da0b
add license scanning actions
dschwartz-ftadvisory May 20, 2025
b4bb289
cleanup FINOS scanning
dschwartz-ftadvisory May 20, 2025
9b4f3a5
Update cve-scanning.yml
dschwartz-ftadvisory May 20, 2025
2915350
Update cve-scanning.yml
dschwartz-ftadvisory May 20, 2025
1864358
Update cve-scanning.yml
dschwartz-ftadvisory May 20, 2025
03aa88c
added allow-list.xml
dschwartz-ftadvisory May 20, 2025
402ba09
Merge branch 'main' of https://github.com/Cloudrisk/rune-python-gener…
dschwartz-ftadvisory May 20, 2025
2a4850a
more license scanning cleanup
dschwartz-ftadvisory May 20, 2025
86f1aad
cleanup license-scanning
dschwartz-ftadvisory May 20, 2025
2b31391
change @3 to @4
dschwartz-ftadvisory May 20, 2025
b1c3978
another @4
dschwartz-ftadvisory May 20, 2025
50a4d9b
more clean up
dschwartz-ftadvisory May 20, 2025
6bab904
more clean up
dschwartz-ftadvisory May 20, 2025
5a147dd
removed website
dschwartz-ftadvisory May 21, 2025
c548e5a
removed node version
dschwartz-ftadvisory May 21, 2025
15f35b1
cleanup license scanning
dschwartz-ftadvisory May 21, 2025
24d7efd
update failOnCVSS to 7
dschwartz-ftadvisory May 21, 2025
2c7f3b3
update to Java 21
dschwartz-ftadvisory May 23, 2025
0fd7b5f
update to Java 21 including github workflows
dschwartz-ftadvisory May 23, 2025
35206b2
Java 21 - last action update
dschwartz-ftadvisory May 23, 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
8 changes: 4 additions & 4 deletions .github/workflows/build-and-test-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# separate terms of service, privacy policy, and support
# documentation.

name: Java CI with Maven
name: Build and Test JAR

on:
push:
Expand All @@ -15,16 +15,16 @@ on:
branches: [ "main" ]

jobs:
build:
build_and_test:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Set up Python 3.11
Expand Down
105 changes: 31 additions & 74 deletions .github/workflows/create-tagged-release.yml
Original file line number Diff line number Diff line change
@@ -1,99 +1,56 @@
name: Maven Package
name: Build JAR on Tag

on:
push:
tags:
- '**'
- '*'

jobs:
build:
runs-on: ubuntu-latest

permissions:
contents: write
contents: write # Ensure write permission for contents
packages: write

steps:
- uses: actions/checkout@v4

- name: Set up JDK 17
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
server-id: github
settings-path: ${{ github.workspace }}

- name: Build with Maven
run: mvn versions:set -DnewVersion=${{ github.ref_name }} -B -U -DskipTests clean package --file pom.xml

- name: Create GitHub Release
id: create_release
uses: actions/github-script@v6
with:
script: |
const tag = context.ref.replace('refs/tags/', '');
let release;
try {
release = await github.rest.repos.getReleaseByTag({
owner: context.repo.owner,
repo: context.repo.repo,
tag
});
core.setOutput('release_id', release.data.id);
} catch (error) {
if (error.status === 404) {
const release = await github.rest.repos.createRelease({
owner: context.repo.owner,
repo: context.repo.repo,
tag_name: context.ref.replace('refs/tags/', ''),
name: `Release ${context.ref.replace('refs/tags/', '')}`,
draft: false,
prerelease: false
});
core.setOutput('release_id', release.data.id);
} else {
throw error;
}
}
core.setOutput('upload_url', release.data.upload_url);
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
java-version: '21' # Matches the enforced version in the POM
cache: maven

- name: Upload JAR to Release
uses: actions/upload-release-asset@v1
- name: Cache Maven dependencies
uses: actions/cache@v4
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: target/python-generator-${{ github.ref_name }}.jar
asset_name: python-generator-${{ github.ref_name }}.jar
asset_content_type: application/java-archive
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}

- name: Create Source Code Zip
run: git archive -o source-${{ github.ref_name }}.zip HEAD
- name: Build with Maven
run: |
TAG_NAME=${GITHUB_REF#refs/tags/}
echo "Updating POM version to $TAG_NAME"
mvn -B versions:set -DnewVersion=$TAG_NAME
mvn -B package --file pom.xml -DskipTests

- name: Upload Source Code Zip
uses: actions/upload-release-asset@v1
- name: Revert POM changes
run: git checkout -- pom.xml

- name: Upload JAR files
uses: actions/upload-artifact@v4
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: source-${{ github.ref_name }}.zip
asset_name: source-${{ github.ref_name }}.zip
asset_content_type: application/zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create Source Code Tar.gz
run: git archive -o source-${{ github.ref_name }}.tar.gz --format=tar.gz HEAD
name: jar-files
path: target/*.jar

- name: Upload Source Code Tar.gz
uses: actions/upload-release-asset@v1
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: source-${{ github.ref_name }}.tar.gz
asset_name: source-${{ github.ref_name }}.tar.gz
asset_content_type: application/gzip
files: target/*.jar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Reset POM
run: git checkout -- pom.xml
43 changes: 43 additions & 0 deletions .github/workflows/cve-scanning.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CVE Scanning for Maven

on:
push:
branches:
- main

jobs:
depchecktest:
runs-on: ubuntu-latest
name: depecheck_test
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Build with Maven
run: mvn install -DskipTests
working-directory: .
- name: Depcheck
uses: dependency-check/Dependency-Check_Action@1b5d19fd4a32ff0ff982e8c9d8e27dbf7ac8a46c
id: Depcheck
env:
JAVA_HOME: /opt/jdk
with:
project: ${{github.repository}}
path: '.'
format: 'HTML'
out: 'reports' # this is the default, no need to specify unless you wish to override it
args: >
--suppression ./allow-list.xml
--failOnCVSS 7
--enableRetired

- name: Upload Test results
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: Depcheck report
path: ${{github.workspace}}/reports
80 changes: 80 additions & 0 deletions .github/workflows/license-scanning-maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: License Scanning for Maven

on:
schedule:
- cron: '0 8,18 * * 1-5'
push:
paths:
- './pom.xml'
- '.github/workflows/license-scanning-maven.yml'

env:
ALLOW_LICENSES: "
licenses/license/name!='Apache License, Version 2.0' and
not(contains(licenses/license/url, '://www.apache.org/licenses/LICENSE-2.0.txt')) and
not(contains(licenses/license/url, '://opensource.org/licenses/Apache-2.0')) and

licenses/license/name!='BSD License' and
not(contains(licenses/license/url, 'antlr.org/license.html')) and

licenses/license/name!='New BSD License' and
not(contains(licenses/license/url, '://www.opensource.org/licenses/bsd-license.php')) and

licenses/license/name!='BSD-3-Clause' and
not(contains(licenses/license/url, '://asm.ow2.io/license.html')) and

licenses/license/name!='Eclipse Public License - v 1.0' and
not(contains(licenses/license/url, '://www.eclipse.org/legal/epl-v10.html')) and

licenses/license/name!='Eclipse Public License - v 2.0' and
not(contains(licenses/license/url, '://www.eclipse.org/legal/epl-v20.html')) and
not(contains(licenses/license/url, '://www.eclipse.org/legal/epl-2.0')) and

licenses/license/name!='GNU Lesser General Public License' and
not(contains(licenses/license/url, '://www.gnu.org/licenses/old-licenses/lgpl-2.1.html')) and

licenses/license/name!='GNU General Public License (GPL), version 2, with the Classpath exception' and
not(contains(licenses/license/url, '://openjdk.java.net/legal/gplv2+ce.html')) and

licenses/license/name!='The MIT License' and
not(contains(licenses/license/url, '://opensource.org/licenses/MIT')) and
not(contains(licenses/license/url, '://www.opensource.org/licenses/mit-license.php')) and

licenses/license/name!='CDDL + GPLv2 with classpath exception' and
not(contains(licenses/license/url, '://github.com/javaee/javax.annotation/blob/master/LICENSE')) and

licenses/license/name!='Public Domain'
"
REPORT_PATH: "target/generated-resources/licenses.xml"

jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
cache: maven
distribution: 'adopt'
- name: Install XQ
run: pip install xq
- name: Build with Maven
run: mvn clean install -Dmaven.test.skip=true
working-directory: .
- name: License XML report
run: mvn org.codehaus.mojo:license-maven-plugin:2.0.0:download-licenses
working-directory: .
- name: Validate XML report
run: |
LICENSE_REPORT=`xq "//dependency[licenses/license/name!=${{ env.ALLOW_LICENSES }}]" ./${{ env.REPORT_PATH }}`
LINES_FOUND=`echo $LICENSE_REPORT | wc -l`
echo "License issues found ..."
if [ $LINES_FOUND -gt 1 ]; then echo $LICENSE_REPORT ; exit -1; fi
working-directory: .
- name: Upload license XML reports
uses: actions/upload-artifact@v4
with:
name: license-xml-report
path: './**/${{ env.REPORT_PATH }}'
1 change: 0 additions & 1 deletion .node-version

This file was deleted.

2 changes: 1 addition & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

_What is being released?_

This release adds support for meta data and for serialization / deserialization consistient with the [serialization specifications in CDM issue #3236](https://github.com/finos/common-domain-model/issues/3236)
This release adds support for meta data and for serialization / deserialization consistent with the [serialization specifications in CDM issue #3236](https://github.com/finos/common-domain-model/issues/3236)

Also included is support for circular dependencies and increased testing of operators.

Expand Down
Loading