forked from hyperledger/fabric-chaincode-java
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (25 loc) · 813 Bytes
/
scheduled-scan.yml
File metadata and controls
30 lines (25 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: "Scheduled vulnerability scan"
on:
schedule:
- cron: "20 3 * * *"
workflow_dispatch:
permissions:
contents: read
jobs:
release-version:
name: Get latest release tag
runs-on: ubuntu-latest
outputs:
tag_name: ${{ steps.tag-name.outputs.value }}
steps:
- id: tag-name
run: echo "value=$(curl --location --silent --fail "https://api.github.com/repos/${GITHUB_REPOSITORY}/releases/latest" | jq --raw-output '.tag_name')" >> "${GITHUB_OUTPUT}"
scan-release:
name: Scan ${{ needs.release-version.outputs.tag_name }}
needs: release-version
uses: ./.github/workflows/scan.yml
with:
ref: ${{ needs.release-version.outputs.tag_name }}
scan-latest:
name: Scan latest
uses: ./.github/workflows/scan.yml