Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DAT-15456 Possible vulnerability in extensions repository's workflows #514

Merged
merged 47 commits into from
Jul 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
43dc66c
chore(pom.xml): update liquibase-hibernate6 version from 0-SNAPSHOT t…
Jul 28, 2023
8caf61b
chore(pom.xml): add copy-rename-maven-plugin version 1.0.1 to depende…
Jul 28, 2023
7cd459c
chore(pom.xml): remove unused maven-source-plugin
Jul 28, 2023
6dd57b8
chore(test.yml): update liquibase/build-logic action to version v0.3.…
Jul 28, 2023
db9a57a
chore(pom.xml): add maven-enforcer-plugin to enforce Java version 1.8…
Jul 28, 2023
52f022d
chore(pom.xml): set Maven compiler target and source to 1.8 for compa…
Jul 28, 2023
808fd3c
fix(pom.xml): downgrade spring.version from 6.0.11 to 6.0.10 to resol…
Jul 28, 2023
f952e01
chore(pom.xml): update spring.version from 6.0.10 to 6.0.11 for compa…
Jul 28, 2023
8f7b817
fix(pom.xml): revert hamcrest version from 2.2 to 1.3 to resolve comp…
Jul 28, 2023
0ca9dca
chore(pom.xml): update hamcrest dependency to version 1.3 for testing…
Jul 28, 2023
a71097f
chore(pom.xml): update maven-compiler-plugin configuration
Jul 28, 2023
0cdade9
chore(pom.xml): remove unused dependencies and update gmavenplus-plug…
Jul 28, 2023
d1b55d7
chore(pom.xml): add dependency on groovy-all version 3.0.18 with excl…
Jul 28, 2023
36bd496
chore(pom.xml): update liquibase-test-harness and spock-core dependen…
Jul 28, 2023
0b4282d
chore(pom.xml): update dependencies for testing framework
Jul 28, 2023
6f02634
chore(pom.xml): downgrade jupiter.version from 5.9.3 to 5.7.2 to reso…
Jul 28, 2023
ee55b27
chore(pom.xml): downgrade jupiter.version from 5.7.2 to 5.7.0 to reso…
Jul 28, 2023
376d27d
chore(pom.xml): update Jupiter version from 5.7.0 to 5.9.3 to use the…
Jul 28, 2023
925fb1f
chore(pom.xml): remove unused maven-surefire-plugin configuration to …
Jul 28, 2023
272e3cc
chore(pom.xml): update Jupiter Surefire version to 1.3.2 for improved…
Jul 28, 2023
35ebd21
chore(pom.xml): update Jupiter version from 5.9.3 to 5.10.0 for impro…
Jul 28, 2023
0c7822d
chore(pom.xml): enable unit tests execution during the test phase
Jul 28, 2023
93ac5e3
chore(pom.xml): downgrade jupiter.version from 5.10.0 to 5.9.3 to res…
Jul 28, 2023
699ceb7
chore(pom.xml): update jacoco-maven-plugin version to 0.8.10 for code…
Jul 28, 2023
31db7f3
chore(pom.xml): update dependencies
Jul 28, 2023
0993a0f
chore(pom.xml): remove unused dependencies
Jul 28, 2023
ece994f
chore(pom.xml): remove unused JUnit and Mockito dependencies
Jul 28, 2023
059e196
chore(pom.xml): remove unused dependencies for jupiter, mockito-core,…
Jul 28, 2023
8d58b5b
chore(pom.xml): uncomment skipTests configuration to enable running t…
Jul 28, 2023
5e37d40
chore(pom.xml): remove unused mockito-core dependency to reduce unnec…
Jul 28, 2023
48f2c31
revert pom
Jul 28, 2023
1e4662d
chore(pom.xml): update liquibase-hibernate6 version from 0-SNAPSHOT t…
Jul 28, 2023
5da4ff1
chore(pom.xml): set maven compiler target and source to 1.8 for compa…
Jul 28, 2023
55e4855
chore(pom.xml): update maven-compiler-plugin configuration to enable …
Jul 28, 2023
475e318
chore(pom.xml): optimize maven-compiler-plugin configuration for bett…
Jul 28, 2023
a29bf9d
chore(pom.xml): remove redundant source configuration in maven-compil…
Jul 28, 2023
33c33ff
chore(pom.xml): update maven-compiler-plugin configuration to enable …
Jul 28, 2023
339d82d
chore(pom.xml): update Maven compiler source and target versions to 1…
Jul 28, 2023
75b1497
chore(pom.xml): remove redundant Maven compiler properties to simplif…
Jul 28, 2023
23785de
fix(pom.xml): fix incorrect groupId for hibernate dependencies
Jul 28, 2023
c90c6b4
chore(pom.xml): update hibernate.version from 6.1.7.Final to 6.0.0.Fi…
Jul 28, 2023
cf65e82
chore(pom.xml): update hibernate version to 6.1.7.Final for compatibi…
Jul 28, 2023
0ec5a3c
chore(test.yml): update test workflow to use JDK 17 and remove hibern…
Jul 28, 2023
38dd5a2
fix(test.yml): remove the -q flag from the mvn command to enable verb…
Jul 28, 2023
b7a6d03
revert pom
Jul 28, 2023
86c87ba
chore(pom.xml): remove unused 'run-its' profile from pom.xml
Jul 28, 2023
c6a2db6
chore(pom.xml): update copy-rename-maven-plugin version to 1.0.1 for …
Jul 28, 2023
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
87 changes: 81 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,88 @@ on:
- synchronize

jobs:
build-test:
uses: liquibase/build-logic/.github/workflows/os-extension-test.yml@v0.3.1
secrets: inherit
build:
# This extension can not execute hibernete tests on Java 8/11. This needs to be fixed and then uncomment the following 2 lines and remove the build and unit-test logic from here
#uses: liquibase/build-logic/.github/workflows/os-extension-test.yml@v0.3.3
#secrets: inherit
name: Build & Package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'
cache: 'maven'

- name: Build and Package
run: mvn -B dependency:go-offline clean package -DskipTests=true

- name: Get Artifact ID
id: get-artifact-id
run: echo "::set-output name=artifact_id::$(mvn help:evaluate -Dexpression=project.artifactId -q -DforceStdout)"

- name: Save Artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ steps.get-artifact-id.outputs.artifact_id }}-artifacts
path: |
target/*

- name: Save Event File
uses: actions/upload-artifact@v3
with:
name: Event File
path: ${{ github.event_path }}

outputs:
artifact_id: ${{ steps.get-artifact-id.outputs.artifact_id }}

unit-test:
name: Test Java ${{ matrix.java }}
runs-on: ubuntu-latest
needs: build

strategy:
fail-fast: false
matrix:
java: [ 17, 19 ]

steps:
- uses: actions/checkout@v2

- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
cache: 'maven'

- name: Build Cache
uses: actions/cache@v3.0.5
with:
key: build-${{ github.run_number }}-${{ github.run_attempt }}
path: |
**/target/**
~/.m2/repository/org/liquibase/

- name: Run Tests
run: mvn -B jacoco:prepare-agent surefire:test

- name: Archive Test Results
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: test-reports-jdk-${{ matrix.java }}
path: |
**/target/surefire-reports
**/target/jacoco.exec

hibernate-test:
name: Test Hibernate ${{ matrix.hibernate }}
needs: build-test
needs: build
runs-on: ubuntu-latest

strategy:
Expand All @@ -34,10 +109,10 @@ jobs:
cache: 'maven'

- name: Run Compatibility Tests
run: mvn -qB jacoco:prepare-agent surefire:test -Dhibernate.version=${{ matrix.hibernate }}
run: mvn -B jacoco:prepare-agent surefire:test -Dhibernate.version=${{ matrix.hibernate }}

- name: Run Tests
run: mvn -qB jacoco:prepare-agent surefire:test
run: mvn -B jacoco:prepare-agent surefire:test

- name: Archive Test Results
if: ${{ always() }}
Expand Down
Empty file.
134 changes: 134 additions & 0 deletions build/spock-reports/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
<!DOCTYPE html><html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'></meta>
<style>body {
font-family: Helvetica, Arial, sans-serif;
font-weight: 300;
}

h2 {
font-weight: 400;
}

h3 {
font-weight: 200;
}

table {
margin: 5px;
}

.ignored {
color: gray;
}

div.project-header {
margin-bottom: 10px;
font-size: large;
}

div.project-header &gt; span.project-name {

}

div.project-header &gt; span.project-version {
padding-left: 20px;
}

div.date-test-ran {
font-size: small;
font-style: italic;
}

div.spec-title {
padding: 10px 0px 5px 0px;
}

table.summary-table {
width: 800px;
text-align: left;
font-weight: 500;
font-size: small;
}

table.summary-table th {
background: lightblue;
padding: 6px;
}

table.summary-table td {
background: #E0E0E0;
padding: 6px;
}

tr.error td, td.error {
background-color: #F89A4F !important;
}

tr.failure td, td.failure {
color: red;
}

div.footer {
text-align: center;
font-size: small;
}
</style>
</head>
<body>
<h2>Specification run results</h2>
<hr></hr>
<div class='summary-report'>
<h3>Specifications summary:</h3>
<div class='date-test-ran'>Created on Fri Jul 28 14:00:37 CEST 2023 by jandro</div>
<table class='summary-table'>
<thead>
<tr>
<th>Total</th>
<th>Passed</th>
<th>Failed</th>
<th>Skipped</th>
<th>Ft Total</th>
<th>Ft Passed</th>
<th>Ft Failed</th>
<th>Ft Skipped</th>
<th>Success rate</th>
<th>Total time</th>
</tr>
</thead>
<tbody>
<tr>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>100.0%</td>
<td>0</td>
</tr>
</tbody>
</table>
</div>
<h3>Specifications:</h3>
<table class='summary-table'>
<thead>
<tr>
<th>Name</th>
<th>Features</th>
<th>Iterations</th>
<th>Failed</th>
<th>Errors</th>
<th>Skipped</th>
<th>Success rate</th>
<th>Time</th>
</tr>
</thead>
<tbody></tbody>
</table>
<hr></hr>
<div class='footer'>Generated by <a href='https://github.com/renatoathaydes/spock-reports'>Athaydes Spock Reports</a></div>
</body>
</html>
Loading
Loading