Skip to content

Commit

Permalink
Testing out Docker Scout cronjob
Browse files Browse the repository at this point in the history
  • Loading branch information
tefirman committed Oct 20, 2024
1 parent 0d6d6c3 commit 1a47ba3
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions .github/workflows/docker-scout.yaml
Original file line number Diff line number Diff line change
@@ -1,36 +1,24 @@
name: Docker Scout

on:
pull_request:
types: [opened, reopened, synchronize]
schedule:
- cron: "0 0 20 * *"

env:
GH_TOKEN: ${{ github.token }}

# permissions:
# pull-requests: write

jobs:
scout:
runs-on: ubuntu-latest
permissions: write-all
# container:
# image: docker/scout-cli
steps:
- name: Checkout
uses: actions/checkout@v4
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3
- name: Login to DockerHub Container Registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PW }}
# - name: Build
# run: docker build --platform linux/amd64 -t bwa-scout -f bwa/Dockerfile_latest .
# docker scout cves bwa-test --only-fixed --format markdown | gh issue create --repo getwilds/wilds-docker-library --title "bwa CVE Analysis" --body-file -
# docker scout cves getwilds/gatk:latest --only-fixed --format sarif --output test.json \
# && jq '.runs[0].tool.driver.rules | length' test.json
- name: Install Docker Scout
run: |
curl -fsSL https://raw.githubusercontent.com/docker/scout-cli/main/install.sh -o install-scout.sh
Expand Down Expand Up @@ -58,8 +46,3 @@ jobs:
docker system prune -af
fi
done
# id: docker-scout
# uses: docker/scout-action@v1
# with:
# command: cves,recommendations
# only-fixed: true

0 comments on commit 1a47ba3

Please sign in to comment.