Skip to content

Commit 0ca2a70

Browse files
AzfaarQureshiAzfaar Qureshi
andauthored
Adding Security Workflows to GitHub Actions (2/2): gosec workflow (#507)
* adding gosec workflow to github actions * adding schedule job * removing push trigger Co-authored-by: Azfaar Qureshi <[email protected]>
1 parent f6da9db commit 0ca2a70

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/workflows/gosec.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Run Gosec
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
# ┌───────────── minute (0 - 59)
6+
# │ ┌───────────── hour (0 - 23)
7+
# │ │ ┌───────────── day of the month (1 - 31)
8+
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
9+
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
10+
# │ │ │ │ │
11+
# │ │ │ │ │
12+
# │ │ │ │ │
13+
# * * * * *
14+
- cron: '30 2 * * *'
15+
jobs:
16+
tests:
17+
runs-on: ubuntu-latest
18+
env:
19+
GO111MODULE: on
20+
steps:
21+
- name: Checkout Source
22+
uses: actions/checkout@v2
23+
- name: Run Gosec Security Scanner
24+
uses: securego/gosec@master
25+
with:
26+
args: ./...

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
1616
- A new AWS X-Ray ID Generator (#459)
1717
- Migrate CircleCI jobs to GitHub Actions (#476)
1818
- Add CodeQL GitHub Action (#506)
19+
- Add gosec workflow to GitHub Actions (#507)
1920

2021
### Fixed
2122

0 commit comments

Comments
 (0)