Skip to content

Commit

Permalink
chore(ci): add gitleaks configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Marthym committed Dec 27, 2023
1 parent 1ca2e74 commit 142a692
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .compose/opentelemetry/receiver_prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ receivers:
metrics_path: '/actuator/prometheus'
basic_auth:
username: "prometheus"
password: "***REMOVED***"
password: "uzpUAANKgZXxbdk19AjfWmknKfGbP2wKzAAMCpHm"
static_configs:
- targets: [baywatch:8081]
labels:
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/gitleaks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Gitleaks

on:
push:
branches:
- master
- develop
- 'feature/**'
pull_request:
types: [opened, synchronize, reopened]

permissions:
pull-requests: read

jobs:
gitleaks:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Gitleaks Action
uses: zricethezav/gitleaks-action@master
13 changes: 13 additions & 0 deletions .gitleaks.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
title = "Gitleaks Baywatch"
[extend]
useDefault = true

[allowlist]
description = "Ignore false positive"
commits = [
"5a5bffb6a3fd2b0cb7d40849bd9f8c8d7f97dd5f",
"aaeeaca8f9279e16f18f9204c29fed4e4f857c10"
]
paths = [
"sandside/src/test"
]

0 comments on commit 142a692

Please sign in to comment.