Skip to content

Commit

Permalink
ci(megalinter): use automation bot
Browse files Browse the repository at this point in the history
  • Loading branch information
tyriis committed Nov 27, 2023
1 parent 4e7c9b5 commit 504b1ea
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/mega-linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,18 @@ jobs:
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: ${{ secrets.GITHUB_TOKEN }}
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
Expand Down

0 comments on commit 504b1ea

Please sign in to comment.