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

ci: add PR workflow for checking dependencies #43

Closed
wants to merge 1 commit into from
Closed
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
25 changes: 25 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Check

on:
pull_request:
branches:
- master

jobs:
check:
uses: wetransform/gha-workflows/.github/workflows/gradle-library.yml@master
with:
gradle-tasks: ''
java-version: 17
notify-failure: false
skip-build: true # only do scan, build takes long and often failing
expect-tests: false
submodules: 'recursive'

# work around issue with new Zip validation in recent Java updates
# for info see https://github.com/iBotPeaches/Apktool/issues/3174
java-options: '-Djdk.util.zip.disableZip64ExtraFieldValidation=true'

# rename lockfile so trivy picks it up
pre-build-command: mv gradle/dependency-locks/platform.lockfile gradle/dependency-locks/platform-gradle.lockfile
secrets: inherit
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@ configurations {
details.useTarget "com.hierynomus:sshj:${details.requested.version}"
}
}

// activate dependency locking for generating a lockfile for security scanning
resolutionStrategy.activateDependencyLocking()
}
}

Expand Down
Loading