-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(gh-actions): add mega-linter and remove old gh actions
- Loading branch information
Showing
13 changed files
with
72 additions
and
147 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
skip-check: | ||
# Ensure that HEALTHCHECK instructions have been added to container images | ||
- CKV_DOCKER_2 | ||
# The build output cannot be affected by user parameters other than the build entry point and the top-level source location. GitHub Actions workflow_dispatch inputs MUST be empty | ||
- CKV_GHA_7 |
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
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
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: MegaLinter | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches-ignore: | ||
- main | ||
|
||
jobs: | ||
build: | ||
name: MegaLinter | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Extract commands from markdown files | ||
run: | | ||
set -euxo pipefail | ||
echo '#!/usr/bin/env bash' > README.sh | ||
find . -name '*.md' -print0 | while IFS= read -r -d '' FILE ; do | ||
sed -n "/^\`\`\`\(bash\|shell\).*/,/^\`\`\`$/p" "${FILE}" \ | ||
| \ | ||
sed \ | ||
-e 's/^```\(bash\|shell\).*//' \ | ||
-e '/^```$/d' \ | ||
>> README.sh | ||
done | ||
chmod a+x README.sh | ||
- name: MegaLinter | ||
uses: megalinter/megalinter@v6.17.0 | ||
env: | ||
BASH_SHFMT_ARGUMENTS: --indent 2 --space-redirects | ||
DISABLE_LINTERS: SPELL_CSPELL | ||
FORMATTERS_DISABLE_ERRORS: false | ||
GITHUB_COMMENT_REPORTER: false | ||
GITHUB_STATUS_REPORTER: true | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
MARKDOWN_MARKDOWN_LINK_CHECK_FILTER_REGEX_EXCLUDE: tests | ||
PRINT_ALPACA: false | ||
SARIF_REPORTER: true | ||
VALIDATE_ALL_CODEBASE: true |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,5 +20,7 @@ RUN set -eux && \ | |
|
||
COPY entrypoint.sh /entrypoint.sh | ||
|
||
USER guest | ||
|
||
WORKDIR /mnt | ||
ENTRYPOINT [ "/entrypoint.sh" ] |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
name: 'My Markdown Link Checker' | ||
description: 'Check markdown files for broken links' | ||
author: 'ruzickap' | ||
name: "My Markdown Link Checker" | ||
description: "Check markdown files for broken links" | ||
author: "ruzickap" | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' | ||
using: "docker" | ||
image: "Dockerfile" | ||
branding: | ||
icon: 'list' | ||
color: 'blue' | ||
icon: "list" | ||
color: "blue" | ||
inputs: | ||
config_file: | ||
description: 'markdown-link-check config file' | ||
description: "markdown-link-check config file" | ||
debug: | ||
description: 'Debug mode' | ||
description: "Debug mode" | ||
exclude: | ||
description: 'Exclude files or directories' | ||
description: "Exclude files or directories" | ||
fd_cmd_params: | ||
description: 'Command line parameters for fd command. "exclude" and "search_paths" parameters are ignored if this is set' | ||
quiet: | ||
description: 'Quiet mode for markdown-link-check' | ||
description: "Quiet mode for markdown-link-check" | ||
search_paths: | ||
description: 'Set paths which should be recursively scanned for markdown files (*.md) and linted. By default all "*.md" files are checked' | ||
verbose: | ||
description: 'Verbose mode for markdown-link-check' | ||
description: "Verbose mode for markdown-link-check" |
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