Skip to content
This repository was archived by the owner on Feb 20, 2026. It is now read-only.

chore(copier): update from template (#126) #976

chore(copier): update from template (#126)

chore(copier): update from template (#126) #976

Workflow file for this run

# This file is @generated by <https://github.com/liblaf/copier-shared>.
# DO NOT EDIT!
# ref: <https://github.com/oxsecurity/megalinter/blob/main/mega-linter-runner/generators/mega-linter/templates/mega-linter.yml>
# ref: <https://megalinter.io>
name: MegaLinter
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
env:
FORCE_COLOR: 1
jobs:
mega-linter:
name: MegaLinter
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
environment:
name: MegaLinter
steps:
- id: auth
name: Auth
uses: liblaf/actions/auth@v1
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v6
with:
ref: ${{ github.head_ref || github.ref }}
- id: lint
name: MegaLinter
uses: liblaf/actions/mega-linter@v1
with:
token: ${{ steps.auth.outputs.token }}
- if: success() || failure()
name: Upload Reports
uses: actions/upload-artifact@v6
with:
name: mega-linter-reports
path: |-
mega-linter.log
megalinter-reports
include-hidden-files: true
- if: success() || failure()
name: Remove MegaLinter Reports
run: |-
cp --target-directory='${{ runner.temp }}' --verbose 'megalinter-reports/megalinter-report.md'
sudo rm --force --recursive 'mega-linter.log' 'megalinter-reports'
- if: steps.lint.outputs.has-updated-sources > 0 && github.ref == 'refs/heads/main'
name: Create PR with Applied Fixes
uses: peter-evans/create-pull-request@v8
with:
commit-message: "chore(mega-linter): apply linters automatic fixes"
branch: mega-linter-fix/${{ github.ref_name }}
sign-commits: true
title: "chore(mega-linter): apply linters automatic fixes"
body-path: ${{ runner.temp }}/megalinter-report.md
labels: automerge,bot
assignees: ${{ github.repository_owner }}
reviewers: ${{ github.repository_owner }}
- if: steps.lint.outputs.has-updated-sources > 0 && github.ref != 'refs/heads/main'
name: Commit and Push Applied Linter Fixes
uses: liblaf/actions/commit@v1
with:
add-options: --verbose --update
message: "chore(mega-linter): apply linters automatic fixes"