Skip to content

Commit e2aa01e

Browse files
updated local testing instructions for automate build
1 parent 65a0f8c commit e2aa01e

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

  • .github/actions/automate-container-scan

.github/actions/automate-container-scan/README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,20 +212,25 @@ git clone https://github.com/chef/common-github-actions.git
212212
cd 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
218219
export CHANNEL=current
219220
export OUT_DIR=out
220221
export ACTION_DIR=$(pwd)
221222
bash 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
231236
docker run -d --privileged --cgroupns=host \

0 commit comments

Comments
 (0)