-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (26 loc) · 764 Bytes
/
lint.yml
File metadata and controls
30 lines (26 loc) · 764 Bytes
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
---
name: Lint
on:
workflow_call:
inputs:
megalinter-config:
description: "Path to megalinter config file"
default: "./.github/linters/.megalinter.yml"
type: string
permissions: {}
jobs:
lint:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Check out the codebase
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Run megalinter
uses: oxsecurity/megalinter/flavors/cupcake@8fbdead70d1409964ab3d5afa885e18ee85388bb # v9.4.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MEGALINTER_CONFIG: ${{ inputs.megalinter-config }}