From 79231c3be77c4fe8ace61b1c78fe1ba7e9d22506 Mon Sep 17 00:00:00 2001 From: tanya732 Date: Mon, 19 Jan 2026 10:42:04 +0530 Subject: [PATCH] Patch: Github actions and Workflow --- .github/actions/maven-publish/action.yml | 6 ++++-- .github/actions/rl-scanner/action.yml | 10 ++++++---- .github/workflows/rl-secure.yml | 4 +++- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/actions/maven-publish/action.yml b/.github/actions/maven-publish/action.yml index 643b49e..b20ed43 100644 --- a/.github/actions/maven-publish/action.yml +++ b/.github/actions/maven-publish/action.yml @@ -21,12 +21,14 @@ runs: - name: Setup Java shell: bash + env: + JAVA_VERSION: ${{ inputs.java-version }} run: | curl -s "https://get.sdkman.io" | bash source "/home/runner/.sdkman/bin/sdkman-init.sh" sdk list java - sdk install java ${{ inputs.java-version }} && sdk default java ${{ inputs.java-version }} - export JAVA_HOME=${SDKMAN_DIR}/candidates/java/current + sdk install java $JAVA_VERSION && sdk default java $JAVA_VERSION + export JAVA_HOME="${SDKMAN_DIR}/candidates/java/current" echo "JAVA_HOME is set to $JAVA_HOME" - uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4 # pin@1.1.0 diff --git a/.github/actions/rl-scanner/action.yml b/.github/actions/rl-scanner/action.yml index eb01713..98e9c26 100644 --- a/.github/actions/rl-scanner/action.yml +++ b/.github/actions/rl-scanner/action.yml @@ -40,16 +40,18 @@ runs: RLSECURE_SITE_KEY: ${{ env.RLSECURE_SITE_KEY }} SIGNAL_HANDLER_TOKEN: ${{ env.SIGNAL_HANDLER_TOKEN }} PYTHONUNBUFFERED: 1 + ARTIFACT_PATH: ${{ inputs.artifact-path }} + VERSION: ${{ inputs.version }} run: | - if [ ! -f "${{ inputs.artifact-path }}" ]; then - echo "Artifact not found: ${{ inputs.artifact-path }}" + if [ ! -f "$ARTIFACT_PATH" ]; then + echo "Artifact not found: $ARTIFACT_PATH" exit 1 fi rl-wrapper \ - --artifact "${{ inputs.artifact-path }}" \ + --artifact "$ARTIFACT_PATH" \ --name "${{ github.event.repository.name }}" \ - --version "${{ inputs.version }}" \ + --version "$VERSION" \ --repository "${{ github.repository }}" \ --commit "${{ github.sha }}" \ --build-env "github_actions" \ diff --git a/.github/workflows/rl-secure.yml b/.github/workflows/rl-secure.yml index 6294331..ae7cff7 100644 --- a/.github/workflows/rl-secure.yml +++ b/.github/workflows/rl-secure.yml @@ -53,8 +53,10 @@ jobs: uses: ./.github/actions/get-version - name: Create tgz build artifact + env: + ARTIFACT_NAME: ${{ inputs.artifact-name }} run: | - tar -czvf ${{ inputs.artifact-name }} * + tar -czvf $ARTIFACT_NAME * - name: Run RL Scanner id: rl-scan-conclusion