Skip to content

RL Scan with gh-action-rl-scanner-only #44

RL Scan with gh-action-rl-scanner-only

RL Scan with gh-action-rl-scanner-only #44

name: RL Scan with gh-action-rl-scanner-only
on:
workflow_dispatch:
env:
REPORT_DIR: "RLreport"
jobs:
Build-And-Scan:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set Current Date Time
run: |
echo "DT_NOW=$(date +%Y%m%d-%H%M%S)" >> ${GITHUB_ENV}
- name: Set up Java
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: '11'
cache: 'maven'
- name: Build
run: |
mvn -B clean package
- name: RL scan
continue-on-error: true # Remove this line if you want the overall run to fail when the scan detects policy violations
id: scan
env:
RLSECURE_ENCODED_LICENSE: ${{ secrets.RLSECURE_ENCODED_LICENSE }}
RLSECURE_SITE_KEY: ${{ secrets.RLSECURE_SITE_KEY }}
uses: reversinglabs/gh-action-rl-scanner-only@v1
with:
artifact-to-scan: 'target/struts2-showcase.war'
report-path: ${{ env.REPORT_DIR }}
- name: Archive Report
if: success() || failure()
uses: actions/[email protected]
with:
name: ReversingLabs-report-${{ env.DT_NOW }}
path: ${{ env.REPORT_DIR }}