Skip to content

Commit 40ca031

Browse files
committed
Patch: Github actions and Workflow
1 parent a253288 commit 40ca031

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.github/actions/maven-publish/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@ runs:
2222

2323
- name: Setup Java
2424
shell: bash
25+
env:
26+
JAVA_VERSION: ${{ inputs.java-version }}
2527
run: |
2628
curl -s "https://get.sdkman.io" | bash
2729
source "/home/runner/.sdkman/bin/sdkman-init.sh"
2830
sdk list java
29-
sdk install java ${{ inputs.java-version }} && sdk default java ${{ inputs.java-version }}
31+
sdk install java $JAVA_VERSION && sdk default java $JAVA_VERSION
3032
export JAVA_HOME=${SDKMAN_DIR}/candidates/java/current
3133
echo "JAVA_HOME is set to $JAVA_HOME"
3234

.github/actions/rl-scanner/action.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,18 @@ runs:
4040
RLSECURE_SITE_KEY: ${{ env.RLSECURE_SITE_KEY }}
4141
SIGNAL_HANDLER_TOKEN: ${{ env.SIGNAL_HANDLER_TOKEN }}
4242
PYTHONUNBUFFERED: 1
43+
ARTIFACT_PATH: ${{ inputs.artifact-path }}
44+
VERSION: ${{ inputs.version }}
4345
run: |
44-
if [ ! -f "${{ inputs.artifact-path }}" ]; then
45-
echo "Artifact not found: ${{ inputs.artifact-path }}"
46+
if [ ! -f "$ARTIFACT_PATH" ]; then
47+
echo "Artifact not found: $ARTIFACT_PATH"
4648
exit 1
4749
fi
4850
4951
rl-wrapper \
50-
--artifact "${{ inputs.artifact-path }}" \
52+
--artifact "$ARTIFACT_PATH" \
5153
--name "${{ github.event.repository.name }}" \
52-
--version "${{ inputs.version }}" \
54+
--version "$VERSION" \
5355
--repository "${{ github.repository }}" \
5456
--commit "${{ github.sha }}" \
5557
--build-env "github_actions" \

.github/workflows/rl-scanner.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ jobs:
4949
uses: ./.github/actions/get-version
5050

5151
- name: Create tgz build artifact
52+
env:
53+
ARTIFACT_NAME: ${{ inputs.artifact-name }}
5254
run: |
53-
tar -czvf ${{ inputs.artifact-name }} *
55+
tar -czvf $ARTIFACT_NAME *
5456
5557
- name: Run RL Scanner
5658
id: rl-scan-conclusion

0 commit comments

Comments
 (0)