Security vulnerability scan #327
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright the Hyperledger Fabric contributors. All rights reserved. | |
# | |
# SPDX-License-Identifier: Apache-2.0 | |
name: "Security vulnerability scan" | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "50 1 * * *" | |
permissions: | |
contents: read | |
jobs: | |
scan: | |
# Only run the scheduled job in hyperledger/fabric repository, not on personal forks | |
if: github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository == 'hyperledger/fabric') | |
runs-on: ${{ github.repository == 'hyperledger/fabric' && 'fabric-ubuntu-20.04' || 'ubuntu-20.04' }} | |
strategy: | |
fail-fast: false | |
matrix: | |
ref: | |
- main | |
- release-2.5 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ matrix.ref }} | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.21.9 | |
- name: Scan | |
run: make scan |