Skip to content

Commit e896350

Browse files
committed
chore(actions): add GitHub Actions.
1 parent 6432140 commit e896350

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Code quality checker
2+
on:
3+
push:
4+
branches: [ "master" ]
5+
pull_request:
6+
branches: [ "master" ]
7+
permissions:
8+
contents: read
9+
jobs:
10+
code-quality-checker:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
- name: Install Nix
16+
uses: DeterminateSystems/nix-installer-action@main
17+
- name: Check format of shell files
18+
run: nix shell nixpkgs#shfmt --command shfmt -d .
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Secret scanner
2+
on:
3+
push:
4+
branches: [ "master" ]
5+
pull_request:
6+
branches: [ "master" ]
7+
permissions:
8+
contents: read
9+
jobs:
10+
secret-scanner:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
- name: Install Nix
16+
uses: DeterminateSystems/nix-installer-action@main
17+
- name: Scan secrets
18+
run: |
19+
nix shell nixpkgs#gitleaks --command gitleaks git --no-banner --verbose
20+
nix shell nixpkgs#gitleaks --command gitleaks dir --no-banner --verbose

0 commit comments

Comments
 (0)