Merge pull request #4553 from tyriis/renovate/ghcr.io-siderolabs-kube… #9081
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: MegaLinter | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
build: | |
name: MegaLinter | |
runs-on: ubuntu-latest | |
steps: | |
# https://github.com/marketplace/actions/harden-runner | |
- name: Harden Runner | |
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0 | |
with: | |
egress-policy: audit | |
# https://github.com/marketplace/actions/checkout | |
- name: Checkout Repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
# https://github.com/marketplace/actions/create-github-app-token | |
- name: Generate Token | |
uses: actions/create-github-app-token@0d564482f06ca65fa9e77e2510873638c82206f2 # v1.11.5 | |
id: app-token | |
with: | |
app-id: "${{ secrets.BOT_APP_ID }}" | |
private-key: "${{ secrets.BOT_APP_PRIVATE_KEY }}" | |
# https://github.com/marketplace/actions/megalinter | |
- name: MegaLinter | |
uses: oxsecurity/megalinter/flavors/terraform@ec124f7998718d79379a3c5b39f5359952baf21d # v8.4.2 | |
env: | |
VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'workflow_dispatch' }} | |
GITHUB_TOKEN: "${{ steps.app-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 |