-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (34 loc) · 1.08 KB
/
mega-linter.yml
File metadata and controls
42 lines (34 loc) · 1.08 KB
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
35
36
37
38
39
40
41
42
---
# Copyright The Linux Foundation and each contributor to LFX.
# SPDX-License-Identifier: MIT
name: MegaLinter
"on":
pull_request: null
permissions:
contents: read
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
megalinter:
name: MegaLinter
runs-on: ubuntu-latest
permissions:
contents: read
steps:
# Git Checkout
- name: Checkout Code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: 0
# MegaLinter
- name: MegaLinter
id: ml
# Use the Cupcake flavor (Go and Python).
uses: oxsecurity/megalinter/flavors/cupcake@42bb470545e359597e7f12156947c436e4e3fb9a # 9.3.0
env:
# All available variables are described in documentation
# https://megalinter.io/latest/configuration/
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Allow GITHUB_TOKEN for working around rate limits (aquasecurity/trivy#7668).
REPOSITORY_TRIVY_UNSECURED_ENV_VARIABLES: GITHUB_TOKEN