2022-07-01 12:11:32 +02:00
|
|
|
# Runs the gosec security scanner
|
2022-06-03 21:41:15 +02:00
|
|
|
name: gosec
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- "master"
|
|
|
|
- "release/**"
|
|
|
|
|
2022-07-01 12:11:32 +02:00
|
|
|
jobs:
|
2022-06-03 21:41:15 +02:00
|
|
|
gosec:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
env:
|
|
|
|
GO111MODULE: on
|
|
|
|
steps:
|
|
|
|
- name: Checkout Source
|
|
|
|
uses: actions/checkout@v2
|
2022-07-01 12:11:32 +02:00
|
|
|
|
2022-08-17 11:39:38 +02:00
|
|
|
- name: Get GOVERSION content
|
|
|
|
id: goversion
|
|
|
|
run: echo ::set-output name=version::$(cat GOVERSION)
|
|
|
|
|
2022-08-22 11:50:58 +02:00
|
|
|
- uses: actions/setup-go@v3
|
2022-08-17 11:39:38 +02:00
|
|
|
with:
|
|
|
|
go-version: "${{ steps.goversion.outputs.version }}"
|
|
|
|
|
2022-06-03 21:41:15 +02:00
|
|
|
- name: Run Gosec security scanner
|
2022-07-01 12:11:32 +02:00
|
|
|
continue-on-error: true # TODO(https://github.com/ooni/probe/issues/2180)
|
2022-06-03 21:41:15 +02:00
|
|
|
uses: securego/gosec@master
|
|
|
|
with:
|
|
|
|
args: ./...
|