Skip to content

Commit

Permalink
Merge pull request #252 from nirmata/debug-test-5
Browse files Browse the repository at this point in the history
feat: scan recent tags only
  • Loading branch information
krishbajaj1609 authored and VedRatan committed Aug 1, 2024
2 parents 7c1085f + 4a4ff37 commit 947e231
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions .github/workflows/nightly-scan-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,20 @@ env:
REGISTRY: ghcr.io

jobs:
publish-scan-branch:
nightly-scan-branch:
name: Publish
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
strategy:
fail-fast: false
matrix:
branch:
- main

steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
ref: ${{ matrix.branch }}

- name: Setup Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: go.mod
cache-dependency-path: go.sum
fetch-depth: 0
lfs: true

- name: Log into registry ${{env.REGISTRY}}
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
Expand All @@ -41,14 +31,10 @@ jobs:
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}

- name: Publish image
id: publish-kyverno-notation-aws
run: |
make docker-publish IMAGENAME=nightly-kyverno-notation-aws

- name: Set Image name
run: |
echo IMAGE_NAME="ghcr.io/nirmata/nightly-kyverno-notation-aws" >> $GITHUB_ENV
echo IMAGE_NAME="ghcr.io/nirmata/kyverno-notation-aws:latest" >> $GITHUB_ENV
- name: Scan image using grype
id: grype-scan
Expand Down

0 comments on commit 947e231

Please sign in to comment.