This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit bbc8b8cde2df7c741c82b5c7636ad590e8f5a33f
Author: Nicolas Filotto <nfilo...@talend.com>
AuthorDate: Mon Feb 14 18:33:27 2022 +0100

    Add integrity check for the maven daemon archive
---
 .github/actions/install-mvnd/action.yml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/.github/actions/install-mvnd/action.yml 
b/.github/actions/install-mvnd/action.yml
index a90d561..8386d15 100644
--- a/.github/actions/install-mvnd/action.yml
+++ b/.github/actions/install-mvnd/action.yml
@@ -14,6 +14,11 @@ runs:
   steps:
     - run: curl -fsSL -o mvnd.zip 
https://github.com/apache/maven-mvnd/releases/download/${{ inputs.version 
}}/mvnd-${{ inputs.version }}-linux-amd64.zip
       shell: bash
+    - run: curl -fsSL -o mvnd.zip.sha256 
https://github.com/apache/maven-mvnd/releases/download/${{ inputs.version 
}}/mvnd-${{ inputs.version }}-linux-amd64.zip.sha256
+      shell: bash
+    - id: integrity-check
+      run: echo "$(cat mvnd.zip.sha256) mvnd.zip" | sha256sum --check
+      shell: bash
     - run: unzip mvnd.zip -d /tmp/
       shell: bash
     - id: mvnd-location

Reply via email to