-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/1.1.1' into main
# Conflicts: # pom.xml
- Loading branch information
Showing
7 changed files
with
261 additions
and
50 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,38 @@ | ||
name: Build | ||
|
||
on: | ||
[push] | ||
|
||
jobs: | ||
build: | ||
name: Build and Test | ||
runs-on: ubuntu-latest | ||
outputs: | ||
artifact-version: ${{ steps.setversion.outputs.version }} | ||
env: | ||
BUILD_VERSION: SNAPSHOT | ||
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
server-id: bintray-jcenter | ||
server-username: BINTRAY_USERNAME | ||
server-password: BINTRAY_API_KEY | ||
- uses: actions/cache@v1 | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Ensure to use tagged version | ||
run: mvn versions:set --file ./pom.xml -DnewVersion=${GITHUB_REF##*/} | ||
if: startsWith(github.ref, 'refs/tags/') | ||
- name: Export the project version to the job environment and fix it as an ouput of this job | ||
id: setversion | ||
run: | | ||
v=$(mvn help:evaluate "-Dexpression=project.version" -q -DforceStdout) | ||
echo "::set-env name=BUILD_VERSION::${v}" | ||
echo "::set-output name=version::${v}" | ||
run: mvn versions:set --file ./pom.xml -DnewVersion=${GITHUB_REF##*/} | ||
- name: Build and Test | ||
run: mvn -B install | ||
- name: Upload snapshot artifact fuse-cloud-access-adapter-${{ env.BUILD_VERSION }}.jar | ||
uses: actions/upload-artifact@v2 | ||
id: buildAndTest | ||
run: mvn -B clean install -Pcoverage,dependency-check | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: fuse-cloud-access-adapter-${{ env.BUILD_VERSION }}.jar | ||
path: target/fuse-cloud-access-adapter-*.jar | ||
- name: Deploy to jcenter | ||
run: mvn -B deploy | ||
name: artifacts | ||
path: target/*.jar | ||
- name: Create Release | ||
uses: actions/create-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
env: | ||
BINTRAY_USERNAME: cryptobot | ||
BINTRAY_API_KEY: ${{ secrets.BINTRAY_API_KEY }} | ||
GITHUB_TOKEN: ${{ secrets.CRYPTOBOT_RELEASE_TOKEN }} # release as "cryptobot" | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
prerelease: true |
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,37 @@ | ||
name: Publish to Maven Central | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: 'Tag' | ||
required: true | ||
default: '0.0.0' | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: "refs/tags/${{ github.event.inputs.tag }}" | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml | ||
server-username: MAVEN_USERNAME # env variable for username in deploy | ||
server-password: MAVEN_PASSWORD # env variable for token in deploy | ||
gpg-private-key: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }} # Value of the GPG private key to import | ||
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Enforce project version ${{ github.event.inputs.tag }} | ||
run: mvn versions:set -B -DnewVersion=${{ github.event.inputs.tag }} | ||
- name: Deploy | ||
run: mvn deploy -B -DskipTests -Psign,deploy-central --no-transfer-progress | ||
env: | ||
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | ||
MAVEN_GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }} |
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,40 @@ | ||
name: Publish to GitHub Packages | ||
on: | ||
release: | ||
types: [published] | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
if: startsWith(github.ref, 'refs/tags/') # only allow publishing tagged versions | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
gpg-private-key: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }} # Value of the GPG private key to import | ||
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase | ||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Enforce project version ${{ github.event.release.tag_name }} | ||
run: mvn versions:set -B -DnewVersion=${{ github.event.release.tag_name }} | ||
- name: Deploy | ||
run: mvn deploy -B -DskipTests -Psign,deploy-github --no-transfer-progress | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
MAVEN_GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }} | ||
- name: Slack Notification | ||
uses: rtCamp/action-slack-notify@v2 | ||
env: | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
SLACK_USERNAME: 'Cryptobot' | ||
SLACK_ICON: | ||
SLACK_ICON_EMOJI: ':bot:' | ||
SLACK_CHANNEL: 'proj-clap' | ||
SLACK_TITLE: "Published ${{ github.event.repository.name }} ${{ github.event.release.tag_name }}" | ||
SLACK_MESSAGE: "Ready to <https://github.com/${{ github.repository }}/actions/workflows/publish-central.yml|deploy to Maven Central>." | ||
SLACK_FOOTER: | ||
MSG_MINIMAL: true |
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,38 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- This file lists false positives found by org.owasp:dependency-check-maven build plugin --> | ||
<suppressions xmlns="https://jeremylong.github.io/DependencyCheck/dependency-suppression.1.3.xsd"> | ||
<suppress> | ||
<notes><![CDATA[Suppress known vulnerabilities in FUSE libraries for jnr-fuse.]]></notes> | ||
<gav regex="true">^com\.github\.serceman:jnr-fuse:.*$</gav> | ||
|
||
<!-- See: https://nvd.nist.gov/vuln/detail/CVE-2011-0541 --> | ||
<!-- Last Modified: 02/11/2014 - Awaiting reanalysis --> | ||
<!-- Possible Symlink attack that allows unpermitted unmounts by denying updates to /etc/mtab on Fuse <= 2.8.5 --> | ||
<!-- Can't fix: Error in FUSE --> | ||
<cve>CVE-2011-0541</cve> | ||
|
||
<!-- See: https://nvd.nist.gov/vuln/detail/CVE-2011-0542 --> | ||
<!-- Last Modified: 09/05/2011 --> | ||
<!-- Possible attack that allows unpermitted unmounts on Fuse <= 2.8.5 cause of missing check --> | ||
<!-- Can't fix: Error in FUSE --> | ||
<cve>CVE-2011-0542</cve> | ||
|
||
<!-- See: https://nvd.nist.gov/vuln/detail/CVE-2011-0543 --> | ||
<!-- Last Modified: 02/11/2014 - Awaiting reanalysis --> | ||
<!-- Possible Symlink attack that allows unpermitted unmounts caused by bypassable access restrictions on certain util-linux version on Fuse <= 2.8.5 --> | ||
<!-- Can't fix: Error in FUSE --> | ||
<cve>CVE-2011-0543</cve> | ||
|
||
<!-- See: https://nvd.nist.gov/vuln/detail/CVE-2015-3202 --> | ||
<!-- Last Modified: 06/30/2017 --> | ||
<!-- Possible arbitrary file write using mount's debugging feature because of uncleared environment vars on Fuse < 2.9.3-15 --> | ||
<!-- Can't fix: Error in FUSE --> | ||
<cve>CVE-2015-3202</cve> | ||
|
||
<!-- See: https://nvd.nist.gov/vuln/detail/CVE-2018-10906 --> | ||
<!-- Last Modified: 10/02/2019 --> | ||
<!-- Possible restriction bypass leading to unpermitted mounting of filesystems by non-root users on Fuse < 2.9.8 and < 3.2.5 when using SELinux --> | ||
<!-- Can't fix: Error in FUSE/Not of technical concern for this library --> | ||
<cve>CVE-2018-10906</cve> | ||
</suppress> | ||
</suppressions> |