File tree Expand file tree Collapse file tree
.github/actions/automate-container-scan Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -212,20 +212,25 @@ git clone https://github.com/chef/common-github-actions.git
212212cd common-github-actions/.github/actions/automate-container-scan
213213
214214# Build the container
215- docker build -t automate:latest .
215+ export LICENSE_ID=" <your_chef_commercial_license_id>"
216+ docker build --build-arg LICENSE_ID=" $LICENSE_ID " --build-arg CHANNEL=current -t automate:latest .
216217
217218# Run the scan script
218219export CHANNEL=current
219220export OUT_DIR=out
220221export ACTION_DIR=$( pwd)
221222bash run.sh
223+
224+ # After the scan completes, results are available in:
225+ # out/container/automate/${CHANNEL}/ubuntu/25.10/x86_64
222226```
223227
224228### Interactive Container Access
225229
226230``` bash
227231# Build container
228- docker build -t automate:latest .
232+ export LICENSE_ID=" <your_chef_commercial_license_id>"
233+ docker build --build-arg LICENSE_ID=" $LICENSE_ID " --build-arg CHANNEL=current -t automate:latest .
229234
230235# Start container with systemd
231236docker run -d --privileged --cgroupns=host \
You can’t perform that action at this time.
0 commit comments