Skip to content

Commit 824070e

Browse files
fix: Refactor artifact path and version handling in RL Scanner action (#1287)
1 parent 1dcfc2d commit 824070e

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.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" \

0 commit comments

Comments
 (0)