You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#### Special Environment Variable: REQUIRES_DOCKER
104
+
105
+
The `REQUIRES_DOCKER` environment variable is a special case. When this variable is defined in your audit-env.yaml file (with any value), scanner-audit will automatically mount the Docker socket into the container:
106
+
107
+
```yaml
108
+
environment:
109
+
environment:
110
+
REQUIRES_DOCKER: "true"# Any value will trigger Docker socket mounting
111
+
# ... other variables ...
112
+
```
113
+
114
+
This enables scanners that need to interact with Docker (e.g., to pull images or inspect containers) to function properly. The Docker socket will be mounted as `/var/run/docker.sock:/var/run/docker.sock`.
115
+
116
+
**Note:** Unlike other environment variables, `REQUIRES_DOCKER`:
117
+
- Is not validated for empty or placeholder values
118
+
- Is not passed to the container as an environment variable
119
+
- Only serves to trigger the Docker socket mount
120
+
103
121
### Custom Scanner Installation
104
122
105
123
You can use Melange pipelines in your audit-env.yaml to install custom tools:
0 commit comments