Scanning without manual intervention
The AppScan®
Source CLI shell starts by default
when a container is created; all supported AppScan®
Source CLI commands can be executed within
the container. The CLI also supports defining a set of commands in a script file and
specifying the file using the script command to execute all those
commands sequentially.
By making use of a script command, a scan can be performed without
manual intervention.
For example:
- Create a
script:
> vi /host_machine_workspace/cli.script > login … > oa /container_workspace/simpleIOT/SimpleIOT.paf > scan > report "Findings by Fix Group" pdf-annotated /Apps/owasp_report.pdf -includeSrcBefore:5 -includeSrcAfter:5 -includeTrace:suspect -includeHowToFix > logout - Run the scan in the container, specifying the script:
podman run -it --rm --env-file ./env.list --volume /host_machine_workspace/:/container_workspace/ hcl/appscan/source/cli:10.1.0 script .“/container_workspace/cli.script
Note: As of version 10.3.0, AppScan®
Source supports containerization using
Podman. Since
Docker is not supported in Red Hat Enterprise Linux 8 and 9, use Podman if your host is
running RHEL 8 or 9. Podman supports all major Docker commands; replace Docker with
Podman in the examples in this topic to create containers and scan in the Podman
environment.