Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/linters/.gitleaks.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[allowlist]
paths = [
'''.*\.html$''',
'''content\/patterns\/ansible-edge-gitops-kasten\/ideas-for-customization\.md''',
]

regexes = [
# Ignore lines containing these
'''oc login''',
'''sha256~AUv_4DGQoFMVzmdO3cg3v4vnUuaV3lYcy6N2SCwVOz4''',
]
30 changes: 30 additions & 0 deletions .github/workflows/superlinter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Super linter

on: [push, pull_request]

jobs:
build:
# Name the Job
name: Super linter
# Set the agent to run on
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0

################################
# Run Linter against code base #
################################
- name: Lint Code Base
uses: super-linter/super-linter/slim@v7
env:
VALIDATE_ALL_CODEBASE: true
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# These are the validation we disable atm
VALIDATE_GITLEAKS: true
6 changes: 0 additions & 6 deletions .gitleaks.toml

This file was deleted.

1 change: 1 addition & 0 deletions .gitleaks.toml
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,13 @@ lintwordlist: ## Sorts and removes duplicates from spellcheck exception file .wo
.PHONY: clean
clean: ## Removes any unneeded spurious files
@rm -rvf ./.jekyll-cache ./_site ./tmp super-linter.log dictionary.dic public/*

.PHONY: super-linter
super-linter: ## Runs super linter locally
rm -rf .mypy_cache
podman run -e RUN_LOCAL=true -e USE_FIND_ALGORITHM=true \
-e VALIDATE_GITLEAKS=true \
$(DISABLE_LINTERS) \
-v $(PWD):/tmp/lint:rw,z \
-w /tmp/lint \
ghcr.io/super-linter/super-linter:slim-v7
2 changes: 1 addition & 1 deletion modules/mcg-deploying-mcg-pattern.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ $ cd /path/to/your/repository
+
[source,terminal]
----
$ oc login --token=sha256~AUv_4DGQoFMVzmdO3cg3v4vnUuaV3lYcy6N2SCwVOz4 --server=https://api.<your-cluster>.<domain>:6443
$ oc login --token=<retrieved-token> --server=https://api.<your-cluster>.<domain>:6443
----

. Alternatively log in by running the following command:
Expand Down