Skip to content

feat: add docker CVE's check action #168

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 26, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/vuln-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Docker Image Vulnerability Check

on:
workflow_dispatch:

permissions:
contents: read

env:
TEST_TAG: observeinc/observe-agent:test

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Install qemu
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and export
uses: docker/build-push-action@v6
with:
tags: ${{ env.TEST_TAG }}
outputs: type=docker,dest=${{ runner.temp }}/myimage.tar

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: myimage
path: ${{ runner.temp }}/myimage.tar

- name: Docker Scout
id: docker-scout
uses: docker/scout-action@v1
with:
image: ${{ env.TEST_TAG }}
command: cves,recommendations
to-latest: true
ignore-base: true
ignore-unchanged: true
only-fixed: true
Loading