Repository navigation
馃Ч chore(ci): remove unreliable GitGuardian workflow (#21) #180
This file contains hidden or 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 MegaLinter for pull requests, then re-check the merged result on main. | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.ref }}-${{ github.workflow }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| megalinter: | |
| name: MegaLinter | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 45 | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| steps: | |
| # Git Checkout | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout Code | |
| uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 | |
| with: | |
| # Pull requests need history for diff linting; main pushes validate all code. | |
| fetch-depth: ${{ github.event_name == 'pull_request' && '0' || '1' }} | |
| persist-credentials: false # lint-only job; no git write-back is performed | |
| # 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@e08c2b05e3dbc40af4c23f41172ef1e068a7d651 # v8.8.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 | |
| # Quality gate policy: MegaLinter still reports every finding, but only the | |
| # linters listed in ENABLE_ERRORS_LINTERS fail the build. ACTION_ACTIONLINT | |
| # is enforced because the workflow files it covers are verified clean today. | |
| # Remaining linters stay advisory until a clean baseline is established for | |
| # them; see https://github.com/SamErde/PowerShell/issues/18. | |
| ENABLE_ERRORS_LINTERS: ACTION_ACTIONLINT | |
| DISABLE_LINTERS: SPELL_LYCHEE | |
| # Upload MegaLinter artifacts | |
| - name: Archive production artifacts | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| if: success() || failure() | |
| with: | |
| name: MegaLinter reports | |
| path: | | |
| megalinter-reports | |
| mega-linter.log |