Skip to content

Commit

Permalink
Merge pull request #67 from RedHatProductSecurity/ci/add-mega-linter
Browse files Browse the repository at this point in the history
add megalinter CI workflow and config
  • Loading branch information
gvauter authored Jun 12, 2024
2 parents 7af1a51 + ccb7a89 commit bcd3b48
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main


concurrency:
group: ${{ github.ref }}-${{ github.workflow }}-ci
cancel-in-progress: true

jobs:
megalinter:
name: Run linters
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: MegaLinter
id: megalinter_v7
uses: oxsecurity/megalinter@v7
env:
VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 6 additions & 0 deletions .mega-linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ENABLE_LINTERS:
- REPOSITORY_GITLEAKS
- REPOSITORY_KICS
- ACTION_ACTIONLINT

REPOSITORY_KICS_ARGUMENTS: "--fail-on high"

0 comments on commit bcd3b48

Please sign in to comment.