Skip to content

Security vulnerability scan #513

Security vulnerability scan

Security vulnerability scan #513

# 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