Skip to content

Allow Ubuntu 22.04 base OS packages in Grant policy for the gh-aw-firewall agent image - #52949

Merged
pelikhan merged 2 commits into
mainfrom
copilot/container-image-scan-fix-vulnerabilities-again
Aug 15, 2026
Merged

Allow Ubuntu 22.04 base OS packages in Grant policy for the gh-aw-firewall agent image#52949
pelikhan merged 2 commits into
mainfrom
copilot/container-image-scan-fix-vulnerabilities-again

Conversation

Copilot AI commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

The daily container scan reported 211 license policy violations for ghcr.io/github/gh-aw-firewall/agent:0.28.1. Reproducing the scan locally against the pinned digest with the repo's pinned scanner (anchore/grant:v0.6.8) shows 182 denied packages, all of them Ubuntu 22.04 base-image deb packages (GPL/LGPL/Artistic/"no license found" families). No application-level dependency violates the policy.

Changes

  • .grant.yaml: added the 182 Ubuntu 22.04 base OS packages to ignore-packages under a labelled section, matching the existing precedent for Alpine base OS, the Debian base OS of ghcr.io/github/github-mcp-server, and the Node/npm runtime. Header comment updated to name the Ubuntu-based agent image. The allowlist still applies to every other package in the image.
  • Changeset: patch entry documenting the exception.

After the change the image evaluates as compliant (denied: 0, ignored: 213) instead of noncompliant (denied: 182).

Not addressed here

The 5 High vulnerabilities (ip-address 10.2.0 → 10.3.1, brace-expansion 5.0.7 → 5.0.9, Go stdlib go1.26.5) are baked into the upstream agent image and must be fixed in github/gh-aw-firewall:

  • v0.28.1 is already the newest AWF release, so there is no DefaultFirewallVersion bump available.
  • A .grype.yaml ignore rule would be inappropriate — that file is reserved for findings with no upstream fix, and all five have one.

…image

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix high severity vulnerabilities in container image Allow Ubuntu 22.04 base OS packages in Grant policy for the gh-aw-firewall agent image Aug 15, 2026
Copilot AI requested a review from pelikhan August 15, 2026 19:02
@pelikhan
pelikhan marked this pull request as ready for review August 15, 2026 19:07
Copilot AI balanced review requested due to automatic review settings August 15, 2026 19:07
@pelikhan
pelikhan merged commit ef95180 into main Aug 15, 2026
1 check passed
@pelikhan
pelikhan deleted the copilot/container-image-scan-fix-vulnerabilities-again branch August 15, 2026 19:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Grant policy exceptions for Ubuntu 22.04 packages shipped in the firewall agent image.

Changes:

  • Allows 182 Ubuntu base-image packages.
  • Adds a patch changeset documenting the exception.
Show a summary per file
File Description
.grant.yaml Adds Ubuntu package exceptions.
.changeset/grant-license-exceptions-gh-aw-firewall-agent.md Records the policy change.

Review details

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 2/2 changed files
  • Comments generated: 2
  • Review effort level: Balanced

Comment thread .grant.yaml
# variants of the MCP server and runtime images, plus the Debian-based
# ghcr.io/github/github-mcp-server image) and the Node/npm runtime those
# variants of the MCP server and runtime images, the Debian-based
# ghcr.io/github/github-mcp-server image, and the Ubuntu 22.04 based
Comment thread .grant.yaml
# ghcr.io/github/github-mcp-server image) and the Node/npm runtime those
# variants of the MCP server and runtime images, the Debian-based
# ghcr.io/github/github-mcp-server image, and the Ubuntu 22.04 based
# ghcr.io/github/gh-aw-firewall/agent image) and the Node/npm runtime those
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.87.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[container-image-scan] Container findings for ghcr.io/github/gh-aw-firewall/agent

3 participants