Skip to content

Commit 6b8fa98

Browse files
dev: megalinter grafana dashboard connections
Send MegaLinter statistics to practicalli.grafana.com to be surfaced as dashboars. Connection details are securely stored in github practicalli organization secrets Update megalinter workflow to map environment variables to GitHub Practicalli Org secrets
1 parent ac36ea2 commit 6b8fa98

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

.github/config/megalinter.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ PARALLEL: true
1515

1616
# ENABLE specific linters, all other linters automatically disabled
1717
ENABLE:
18+
- API_REPORTER
1819
- CLOJURE
1920
- CREDENTIALS
2021
- DOCKERFILE

.github/workflows/megalinter.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ jobs:
2121
megalinter:
2222
name: MegaLinter
2323
runs-on: ubuntu-latest
24+
env:
25+
# Grafana Dashboard Connections - GitHub Organization secrets
26+
API_REPORTER: true
27+
API_REPORTER_URL: ${{ secrets.API_REPORTER_URL }}
28+
API_REPORTER_BASIC_AUTH_USERNAME: ${{ secrets.API_REPORTER_BASIC_AUTH_USERNAME }}
29+
API_REPORTER_BASIC_AUTH_PASSWORD: ${{ secrets.API_REPORTER_BASIC_AUTH_PASSWORD }}
30+
API_REPORTER_METRICS_URL: ${{ secrets.API_REPORTER_METRICS_URL }}
31+
API_REPORTER_METRICS_BASIC_AUTH_USERNAME: ${{ secrets.API_REPORTER_METRICS_BASIC_AUTH_USERNAME }}
32+
API_REPORTER_METRICS_BASIC_AUTH_PASSWORD: ${{ secrets.API_REPORTER_METRICS_BASIC_AUTH_PASSWORD }}
33+
API_REPORTER_DEBUG: false
2434
steps:
2535
- run: echo "🚀 Job automatically triggered by ${{ github.event_name }}"
2636
- run: echo "🐧 Job running on ${{ runner.os }} server"

CHANGELOG.org

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* 2024-09-09
66
** Added
77
- dev: megalinter-upgrade task to upgrade config
8+
- dev: megalinter grafana dashboard connections via github organization secrets
89

910
** Updated
1011
- dev: update megalinter config to version 8

0 commit comments

Comments
 (0)