Skip to content

CVE Scan Latest

CVE Scan Latest #22

name: CVE Scan Latest
on:
schedule:
- cron: '0 3 * * *'
workflow_dispatch:
jobs:
get_latest_tag:
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.get_tag.outputs.tag }}
steps:
- name: Get latest tag
id: get_tag
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
TAG=$(gh api repos/steadybit/cli/tags --jq '.[] | select(.name | test("^v[0-9]+\\.[0-9]+\\.[0-9]+$")) | .name' | head -1)
echo "tag=$TAG" >> $GITHUB_OUTPUT
echo "Latest tag: $TAG"
cve_scan:
needs: get_latest_tag
uses: steadybit/extension-kit/.github/workflows/reusable-cve-scan.yml@main
with:
scan_type: 'fs'
checkout_ref: ${{ needs.get_latest_tag.outputs.tag }}