PSSA replace aliases #60
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
# MegaLinter GitHub Action configuration file | |
# More info at https://megalinter.io | |
--- | |
name: MegaLinter | |
# Trigger mega-linter at every push. Action will also be visible from Pull | |
# Requests to main | |
on: | |
# Comment this line to trigger action only on pull-requests | |
# (not recommended if you don't pay for GH Actions) | |
push: | |
pull_request: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.ref }}-${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
megalinter: | |
name: MegaLinter | |
runs-on: ubuntu-latest | |
# Give the default GITHUB_TOKEN write permission to commit and push, comment | |
# issues & post new PR; remove the ones you do not need | |
permissions: | |
contents: read | |
issues: read | |
pull-requests: read | |
steps: | |
# Git Checkout | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }} | |
# If you use VALIDATE_ALL_CODEBASE = true, you can remove this line to | |
# improve performance | |
fetch-depth: 0 | |
# MegaLinter | |
- name: MegaLinter | |
# You can override MegaLinter flavor used to have faster performances | |
# More info at https://megalinter.io/flavors/ | |
uses: oxsecurity/megalinter/flavors/dotnet@v8.0.0 | |
id: ml | |
# All available variables are described in documentation | |
# https://megalinter.io/configuration/ | |
env: | |
# Validates all source when push on main, else just the git diff with | |
# main. Override with true if you always want to lint all sources | |
# | |
# To validate the entire codebase, set to: | |
# VALIDATE_ALL_CODEBASE: true | |
# | |
# To validate only diff with main, set to: | |
# VALIDATE_ALL_CODEBASE: >- | |
# ${{ | |
# github.event_name == 'push' && | |
# contains(fromJSON('["refs/heads/main", "refs/heads/master"]'), github.ref) | |
# }} | |
VALIDATE_ALL_CODEBASE: >- | |
${{ | |
github.event_name == 'push' && | |
contains(fromJSON('["refs/heads/main", "refs/heads/master"]'), github.ref) | |
}} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# ADD YOUR CUSTOM ENV VARIABLES HERE OR DEFINE THEM IN A FILE | |
# .mega-linter.yml AT THE ROOT OF YOUR REPOSITORY | |
# Uncomment to disable copy-paste and spell checks | |
# DISABLE: COPYPASTE,SPELL | |
DISABLE_ERRORS: true | |
DISABLE_LINTERS: SPELL_LYCHEE | |
# Uncomment DISABLE_ERRORS_LINTERS if you want to turn errors back on selectively. | |
# DISABLE_ERRORS_LINTERS: REPOSITORY_DEVSKIM,REPOSITORY_KICS,REPOSITORY_CHECKOV,POWERSHELL_POWERSHELL,SPELL_CSPELL | |
# Upload MegaLinter artifacts | |
- name: Archive production artifacts | |
uses: actions/upload-artifact@v4 | |
if: success() || failure() | |
with: | |
name: MegaLinter reports | |
path: | | |
megalinter-reports | |
mega-linter.log |