File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,12 +21,14 @@ runs:
2121
2222 - name : Setup Java
2323 shell : bash
24+ env :
25+ JAVA_VERSION : ${{ inputs.java-version }}
2426 run : |
2527 curl -s "https://get.sdkman.io" | bash
2628 source "/home/runner/.sdkman/bin/sdkman-init.sh"
2729 sdk list java
28- sdk install java ${{ inputs.java-version }} && sdk default java ${{ inputs.java-version }}
29- export JAVA_HOME=${SDKMAN_DIR}/candidates/java/current
30+ sdk install java $JAVA_VERSION && sdk default java $JAVA_VERSION
31+ export JAVA_HOME=" ${SDKMAN_DIR}/candidates/java/current"
3032 echo "JAVA_HOME is set to $JAVA_HOME"
3133
3234 - uses : gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4 # pin@1.1.0
Original file line number Diff line number Diff 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" \
Original file line number Diff line number Diff line change 5353 uses : ./.github/actions/get-version
5454
5555 - name : Create tgz build artifact
56+ env :
57+ ARTIFACT_NAME : ${{ inputs.artifact-name }}
5658 run : |
57- tar -czvf ${{ inputs.artifact-name }} *
59+ tar -czvf $ARTIFACT_NAME *
5860
5961 - name : Run RL Scanner
6062 id : rl-scan-conclusion
You can’t perform that action at this time.
0 commit comments