-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pin Jar/POM dependencies using checksums (#99)
- Sets up new workflow to update pinned dependencies - Avoid unnecessary builds in case of partial Renovate updates - Pin Gradle dependencies - Fix JUnit-BOM 5.8.0 sha - Set Renovate to sign-off commits and use assignee Resolves #98 {minor} Signed-off-by: Esta Nagy <[email protected]>
- Loading branch information
Showing
10 changed files
with
2,393 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: UpdateChecksums | ||
on: | ||
push: | ||
branches: [ renovate/** ] | ||
paths: | ||
- 'gradle/libs.versions.toml' | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
build: | ||
name: Dependency checksum pin action | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # tag=v2.4.0 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.PUBLISH_KEY }} | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@f0bb91606209742fe3ea40199be2f3ef195ecabf # tag=v2.5.0 | ||
with: | ||
distribution: temurin | ||
java-version: 11 | ||
- uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed # tag=v2.1.7 | ||
with: | ||
path: | | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle-wrapper- | ||
- name: "Remove previous version" | ||
run: cp gradle/verification-metadata-clean.xml gradle/verification-metadata.xml | ||
- name: "Update checksums" | ||
run: ./gradlew --write-verification-metadata sha256 | ||
- name: "Git commit" | ||
run: | | ||
git config --global user.name 'Esta Nagy' | ||
git config --global user.email '[email protected]' | ||
git add gradle/verification-metadata.xml | ||
git commit -asm "Pinning dependency checksums {patch}" | ||
git push -f --set-upstream origin ${{ github.ref_name }} |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<verification-metadata xmlns="https://schema.gradle.org/dependency-verification" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="https://schema.gradle.org/dependency-verification https://schema.gradle.org/dependency-verification/dependency-verification-1.1.xsd"> | ||
<configuration> | ||
<verify-metadata>true</verify-metadata> | ||
<verify-signatures>false</verify-signatures> | ||
<trusted-artifacts> | ||
<trust file=".*-javadoc[.]jar" regex="true"/> | ||
<trust file=".*-sources[.]jar" regex="true"/> | ||
<trust file=".*[.]module" regex="true"/> | ||
</trusted-artifacts> | ||
</configuration> | ||
<components> | ||
<component group="org.junit" name="junit-bom" version="5.8.0"> | ||
<artifact name="junit-bom-5.8.0.pom"> | ||
<sha256 value="ad34ae93e3bc532625c16d7384b4209a3e1807ae5f56a4656bc52b8449fb76c1" origin="Generated by Gradle"/> | ||
</artifact> | ||
</component> | ||
</components> | ||
</verification-metadata> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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