Skip to content

Commit ccd1335

Browse files
author
Admin
committed
Add security automation: Dependabot, truffleHog secret-scan, and CodeQL workflows
1 parent 6244d07 commit ccd1335

3 files changed

Lines changed: 53 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
open-pull-requests-limit: 10
8+
ignore: []
9+
- package-ecosystem: "github-actions"
10+
directory: "/"
11+
schedule:
12+
interval: "weekly"
13+
open-pull-requests-limit: 10
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
# The branches below must be a subset of the branches above
8+
branches: [ main ]
9+
schedule:
10+
- cron: '0 3 * * 0'
11+
12+
jobs:
13+
analyze:
14+
name: Analyze
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Initialize CodeQL
19+
uses: github/codeql-action/init@v2
20+
with:
21+
languages: javascript
22+
- name: Autobuild
23+
uses: github/codeql-action/autobuild@v2
24+
- name: Perform CodeQL Analysis
25+
uses: github/codeql-action/analyze@v2

.github/workflows/secret-scan.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Secret scan (truffleHog)
2+
3+
on:
4+
pull_request:
5+
push:
6+
7+
jobs:
8+
trufflehog:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Run truffleHog secret scanner
13+
uses: dxa4481/trufflehog-action@v2
14+
with:
15+
flags: '--entropy=False --json'

0 commit comments

Comments
 (0)