forked from prometheus-community/fortigate_exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 823 Bytes
/
Copy pathgovulncheck.yml
File metadata and controls
33 lines (31 loc) · 823 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
31
32
33
---
###
# This action is synced from https://github.com/prometheus/prometheus
###
name: govulncheck
on:
pull_request:
paths:
- VERSION
- .github/workflows/govulncheck.yml
push:
branches:
- main
- master
schedule:
- cron: '33 2 * * *'
permissions:
contents: read
jobs:
govulncheck:
runs-on: ubuntu-latest
name: Run govulncheck
steps:
- name: Install snmp_exporter/generator dependencies
id: snmp-deps
run: sudo apt-get update && sudo apt-get -y install libsnmp-dev
if: github.repository == 'prometheus/snmp_exporter'
- id: govulncheck
uses: golang/govulncheck-action@3fa7bd9cee2cfdf3499a8803b226e43de7b7cdb4 # master
env:
GOOS: ${{ contains(github.repository, 'windows_exporter') && 'windows' || '' }}