-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
39 lines (35 loc) · 1.13 KB
/
main.yml
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
34
35
36
37
38
39
name: Organization Code Scanner
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
check-for-secrets:
runs-on: 'ubuntu-latest'
steps:
##########################
# Checkout the code base #
##########################
- name: Checkout
uses: actions/checkout@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
################################
# Run Linter against code base #
################################
- name: Lint Code Base
uses: github/super-linter@v3
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: master
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#################################
# Security scan for credentials #
#################################
- name: Detect Secrets
uses: RobertFischer/[email protected]
- name: Commit back .secrets.baseline (if it was missing)
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "build(detect-secrets): Commit the newly-generated .secrets.baseline file"