-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (30 loc) · 1017 Bytes
/
mega-linter.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
name: MegaLinter
on:
push:
workflow_dispatch:
jobs:
build:
name: MegaLinter
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 0
- name: Generate Token
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
id: generate-token
with:
app_id: "${{ secrets.BOT_APP_ID }}"
private_key: "${{ secrets.BOT_APP_PRIVATE_KEY }}"
- name: MegaLinter
uses: oxsecurity/megalinter/flavors/[email protected]
env:
VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'workflow_dispatch' }}
GITHUB_TOKEN: "${{ steps.generate-token.outputs.token }}"
# GITHUB_STATUS_REPORTER only works if VALIDATE_ALL_CODEBASE is false!
GITHUB_STATUS_REPORTER: true
REPORTERS_MARKDOWN_TYPE: simple
SHOW_ELAPSED_TIME: false
SHOW_SKIPPED_LINTERS: true