Skip to content

Commit cde7d67

Browse files
authored
Fix detector image version pin (#85)
1 parent cfad841 commit cde7d67

6 files changed

Lines changed: 14 additions & 14 deletions

.github/workflows/smoke-claude-container.lock.yml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/smoke-codex-container.lock.yml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/smoke-copilot-container.lock.yml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ schema-capable model is available.
8585
```bash
8686
docker run --rm \
8787
-v /path/to/artifacts:/workspace/artifacts \
88-
ghcr.io/github/gh-aw-threat-detection:v1.0.0 \
88+
ghcr.io/github/gh-aw-threat-detection:v0.0.2 \
8989
/workspace/artifacts
9090
```
9191

@@ -129,7 +129,7 @@ Replay uses the dispatching repository's `GITHUB_TOKEN`; no extra replay token i
129129
Common dispatch examples:
130130

131131
- Current checkout, direct CLI replay: set `run_id`, leave `detector_source=current`, `engine=copilot`, and `use_awf=false`.
132-
- Released detector replay: set `detector_source=release` and `detector_ref` to a release tag such as `v1.0.0`.
132+
- Released detector replay: set `detector_source=release` and `detector_ref` to a release tag such as `v0.0.2`.
133133
- Image detector replay: set `detector_source=image` and optionally set `detector_ref` to an image tag. The workflow extracts the `threat-detect` binary from the image and runs it on the host so the selected engine CLI can be installed there.
134134
- Model comparison: set `model` to the engine-specific model name to pass through `--model`.
135135
- Additional detection instructions: set `custom_prompt`; it is passed as `CUSTOM_PROMPT` and appended to the default detector prompt.
@@ -168,7 +168,7 @@ Maintainers need to configure the following before the image is consumed by `gh-
168168
2. Ensure the package created under `ghcr.io/github/gh-aw-threat-detection` inherits repository visibility or is explicitly private.
169169
3. Grant the consuming `github/gh-aw` repository access to the private package, or configure the organization package settings so `GITHUB_TOKEN` from `gh-aw` can pull it with `packages: read`.
170170
4. Keep the `release-publish` and `release-promote` environments if manual approval is desired; otherwise update the environment protection rules in repository settings.
171-
5. Tag releases with semantic versions such as `v1.0.0`. The release workflow publishes the version tag; the promote workflow tags the verified digest as `latest`.
171+
5. Tag releases with semantic versions such as `v0.0.2`. The release workflow publishes the version tag; the promote workflow tags the verified digest as `latest`.
172172

173173
No additional secrets are required for unit tests, `make build`, `make test`, or the container smoke test. Engine authentication is only needed when running real AI-backed detection:
174174

@@ -241,7 +241,7 @@ Optional Actions variables:
241241
|----------|---------|
242242
| `GH_AW_MODEL_AGENT_COPILOT`, `GH_AW_MODEL_AGENT_CLAUDE`, `GH_AW_MODEL_AGENT_CODEX` | Override the agent model for each smoke workflow. |
243243
| `GH_AW_MODEL_DETECTION_COPILOT`, `GH_AW_MODEL_DETECTION_CLAUDE`, `GH_AW_MODEL_DETECTION_CODEX` | Override the detection model for each engine. |
244-
| `GH_AW_THREAT_DETECTION_IMAGE` | Override the detector image used by the `*-container.lock.yml` siblings. Defaults to `ghcr.io/github/gh-aw-threat-detection:v1.0.0`. |
244+
| `GH_AW_THREAT_DETECTION_IMAGE` | Override the detector image used by the `*-container.lock.yml` siblings. Defaults to `ghcr.io/github/gh-aw-threat-detection:v0.0.2`. |
245245

246246
### Build
247247

@@ -290,7 +290,7 @@ After containerization, `gh-aw` references this component via:
290290

291291
```go
292292
const DefaultThreatDetectionRegistry = "ghcr.io/github/gh-aw-threat-detection"
293-
const DefaultThreatDetectionVersion = "v1.0.0"
293+
const DefaultThreatDetectionVersion = "v0.0.2"
294294
```
295295

296296
The detection job in compiled workflows uses this container instead of inline AI engine invocation.

releases/threat-detection-lifecycle.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
"unknown_version_policy": "fail-closed",
55
"versions": [
66
{
7-
"version": "v1.0.0",
7+
"version": "v0.0.2",
88
"status": "active",
99
"reason": "Initial stable threat detection container release.",
1010
"replacement_version": "",
1111
"replacement_kind": "none",
1212
"deprecated_date": "",
1313
"obsolete_date": "",
14-
"advisory_url": "https://github.com/github/gh-aw-threat-detection/releases/tag/v1.0.0",
14+
"advisory_url": "https://github.com/github/gh-aw-threat-detection/releases/tag/v0.0.2",
1515
"urgency": "none",
1616
"maintainer_note": "Promoted releases are active by default unless this registry marks them deprecated or obsolete."
1717
}

scripts/create-threat-detection-sibling-workflows.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
REPO_ROOT = Path(__file__).resolve().parents[1]
2121
WORKFLOWS_DIR = REPO_ROOT / ".github" / "workflows"
22-
DEFAULT_IMAGE = "ghcr.io/github/gh-aw-threat-detection:v1.0.0"
22+
DEFAULT_IMAGE = "ghcr.io/github/gh-aw-threat-detection:v0.0.2"
2323
ENGINES = {
2424
"smoke-copilot.lock.yml": ("copilot", "Smoke Copilot Containerized"),
2525
"smoke-claude.lock.yml": ("claude", "Smoke Claude Containerized"),

0 commit comments

Comments
 (0)