diff options
author | Bjørn Erik Pedersen <[email protected]> | 2022-11-17 16:16:19 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2022-11-17 16:16:19 +0100 |
commit | f04cc581e195bb13803c9e18ca3a3865219e17d4 (patch) | |
tree | 04a8a239f75fd81c8ac7a792d8fb96f401bfa651 /docs/.github | |
parent | cdd83bf3c885c16dc7976ed3697e600029f82bab (diff) | |
parent | 00c4484c7092181729f6f470805bc7d72e8ad17b (diff) | |
download | hugo-f04cc581e195bb13803c9e18ca3a3865219e17d4.tar.gz hugo-f04cc581e195bb13803c9e18ca3a3865219e17d4.zip |
Merge commit '00c4484c7092181729f6f470805bc7d72e8ad17b'
Diffstat (limited to 'docs/.github')
-rw-r--r-- | docs/.github/stale.yml | 2 | ||||
-rw-r--r-- | docs/.github/workflows/codeql-analysis.yml | 26 | ||||
-rw-r--r-- | docs/.github/workflows/spellcheck.yml | 5 | ||||
-rw-r--r-- | docs/.github/workflows/super-linter.yml | 41 |
4 files changed, 71 insertions, 3 deletions
diff --git a/docs/.github/stale.yml b/docs/.github/stale.yml index 389205294..1e72eb329 100644 --- a/docs/.github/stale.yml +++ b/docs/.github/stale.yml @@ -17,6 +17,6 @@ markComment: > If you still think this is important, please tell us why. This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions. - + # Comment to post when closing a stale issue. Set to `false` to disable closeComment: false diff --git a/docs/.github/workflows/codeql-analysis.yml b/docs/.github/workflows/codeql-analysis.yml new file mode 100644 index 000000000..30f98a000 --- /dev/null +++ b/docs/.github/workflows/codeql-analysis.yml @@ -0,0 +1,26 @@ +name: "CodeQL" + +on: + schedule: + - cron: "0 0 1 * *" + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: "javascript" + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 diff --git a/docs/.github/workflows/spellcheck.yml b/docs/.github/workflows/spellcheck.yml index 6f68fee18..594621604 100644 --- a/docs/.github/workflows/spellcheck.yml +++ b/docs/.github/workflows/spellcheck.yml @@ -1,4 +1,4 @@ -name: 'Check spelling' +name: "Check spelling" on: # rebuild any PRs and main branch changes push: branches-ignore: @@ -15,6 +15,7 @@ jobs: - uses: actions/checkout@v3 - uses: streetsidesoftware/cspell-action@v2 with: + check_dot_files: false + incremental_files_only: true inline: warning strict: false - incremental_files_only: true diff --git a/docs/.github/workflows/super-linter.yml b/docs/.github/workflows/super-linter.yml new file mode 100644 index 000000000..efd206960 --- /dev/null +++ b/docs/.github/workflows/super-linter.yml @@ -0,0 +1,41 @@ +name: Super Linter + +on: + workflow_dispatch: + +permissions: + contents: read # to fetch code (actions/checkout) + +jobs: + build: + permissions: + contents: read # to fetch code (actions/checkout) + statuses: write # to mark status of each linter run (github/super-linter/slim) + + name: Lint Code Base + runs-on: ubuntu-latest + if: ${{ github.actor != 'dependabot[bot]' }} + + steps: + - name: Checkout Code + uses: actions/checkout@v3 + + - name: Lint Code Base + uses: github/super-linter/slim@v4 + env: + DEFAULT_BRANCH: master + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + IGNORE_GITIGNORED_FILES: true + LINTER_RULES_PATH: / + LOG_LEVEL: NOTICE + MARKDOWN_CONFIG_FILE: .markdownlint.yaml + SUPPRESS_POSSUM: true + VALIDATE_CSS: false + VALIDATE_EDITORCONFIG: false + VALIDATE_GITLEAKS: false + VALIDATE_HTML: false + VALIDATE_JAVASCRIPT_STANDARD: false + VALIDATE_JSCPD: false + VALIDATE_NATURAL_LANGUAGE: false + VALIDATE_SHELL_SHFMT: false + VALIDATE_XML: false |