Skip to content

Commit

Permalink
dev: megalinter grafana dashboard connections
Browse files Browse the repository at this point in the history
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
  • Loading branch information
practicalli-johnny committed Sep 13, 2024
1 parent ac36ea2 commit 6b8fa98
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/config/megalinter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ PARALLEL: true

# ENABLE specific linters, all other linters automatically disabled
ENABLE:
- API_REPORTER
- CLOJURE
- CREDENTIALS
- DOCKERFILE
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/megalinter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ jobs:
megalinter:
name: MegaLinter
runs-on: ubuntu-latest
env:
# Grafana Dashboard Connections - GitHub Organization secrets
API_REPORTER: true
API_REPORTER_URL: ${{ secrets.API_REPORTER_URL }}
API_REPORTER_BASIC_AUTH_USERNAME: ${{ secrets.API_REPORTER_BASIC_AUTH_USERNAME }}
API_REPORTER_BASIC_AUTH_PASSWORD: ${{ secrets.API_REPORTER_BASIC_AUTH_PASSWORD }}
API_REPORTER_METRICS_URL: ${{ secrets.API_REPORTER_METRICS_URL }}
API_REPORTER_METRICS_BASIC_AUTH_USERNAME: ${{ secrets.API_REPORTER_METRICS_BASIC_AUTH_USERNAME }}
API_REPORTER_METRICS_BASIC_AUTH_PASSWORD: ${{ secrets.API_REPORTER_METRICS_BASIC_AUTH_PASSWORD }}
API_REPORTER_DEBUG: false
steps:
- run: echo "🚀 Job automatically triggered by ${{ github.event_name }}"
- run: echo "🐧 Job running on ${{ runner.os }} server"
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.org
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* 2024-09-09
** Added
- dev: megalinter-upgrade task to upgrade config
- dev: megalinter grafana dashboard connections via github organization secrets

** Updated
- dev: update megalinter config to version 8
Expand Down

0 comments on commit 6b8fa98

Please sign in to comment.