From ca643ddcf9862c915439c31fcc11d3fd85654caa Mon Sep 17 00:00:00 2001 From: Sebastian Luna-Valero Date: Tue, 5 Nov 2024 12:27:01 +0100 Subject: [PATCH] Replace static table with new cvmfs-monitor (#682) - Add a link to the CVMFS monitor after the static table - Address various mega-linter issues - Fixed push filters to avoid running linters on the whole codebase - Disable auto application of fixes until a clean/secure solution will have been put in place --------- Co-authored-by: Baptiste Grenier --- .github/linters/mlc_config.json | 10 ++++++++-- .github/workflows/mega-linter.yml | 13 +++++++++---- .github/workflows/spelling.yml | 4 ++-- .lycheeignore | 17 +++++++++++++++++ .../compute/software-distribution/_index.md | 3 +++ 5 files changed, 39 insertions(+), 8 deletions(-) diff --git a/.github/linters/mlc_config.json b/.github/linters/mlc_config.json index 80be965c54..b71c897b1a 100644 --- a/.github/linters/mlc_config.json +++ b/.github/linters/mlc_config.json @@ -23,6 +23,9 @@ { "pattern": "^https://aai.egi.eu/LoA" }, + { + "pattern": "^https://aai.egi.eu/proxy*" + }, { "pattern": "^https://.*aai.egi.eu/mp-oa2-server/" }, @@ -33,10 +36,10 @@ "pattern": "^https://argo-mon.*.cro-ngi.hr/nagios" }, { - "pattern": "^https://training.notebooks.egi.eu*" + "pattern": "^http://cvmfs-release01.gridpp.rl.ac.uk/*" }, { - "pattern": "^https://aai.egi.eu/proxy*" + "pattern": "^https://training.notebooks.egi.eu*" }, { "pattern": "^https://goc.egi.eu/portal*" @@ -65,6 +68,9 @@ { "pattern": "^https://opensource.org/licenses" }, + { + "pattern": "^https://omnibenchmark.org" + }, { "pattern": "^https://servproject.i3m.upv.es/ec3-ltos/*" }, diff --git a/.github/workflows/mega-linter.yml b/.github/workflows/mega-linter.yml index fb6ac8f44a..11ae676094 100644 --- a/.github/workflows/mega-linter.yml +++ b/.github/workflows/mega-linter.yml @@ -6,8 +6,11 @@ name: MegaLinter on: # Trigger mega-linter at every push. Action will also be visible from Pull Requests to main push: + branches: + - "main" pull_request: - branches: [main] + branches: + - "main" permissions: read-all @@ -15,7 +18,7 @@ env: # Apply linter fixes configuration # When active, APPLY_FIXES must also be defined as environment variable # (in github/workflows/mega-linter.yml or other CI tool) - APPLY_FIXES: all + APPLY_FIXES: none APPLY_FIXES_EVENT: pull_request # If APPLY_FIXES is used, defines if the fixes are directly committed (commit) or posted in a PR (pull_request) APPLY_FIXES_MODE: pull_request @@ -54,13 +57,15 @@ jobs: # https://megalinter.io/configuration/ # 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 - VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + VALIDATE_ALL_CODEBASE: ${{ ((github.event_name == 'push' && github.ref == 'refs/heads/main') && 'true') + || 'false' }} 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 DISABLE: COPYPASTE DISABLE_LINTERS: REPOSITORY_GRYPE,REPOSITORY_TRIVY,REPOSITORY_TRUFFLEHOG,SPELL_CSPELL + MARKDOWN_MARKDOWN_LINK_CHECK_CONFIG_FILE: ".github/linters/mlc_config.json" # Scan only changes in PR, otherwise scan everything - REPOSITORY_GITLEAKS_PR_COMMITS_SCAN: ${{ github.event_name == 'pull_request' }} + REPOSITORY_GITLEAKS_PR_COMMITS_SCAN: ${{ (github.event_name == 'pull_request' && 'true') || 'false' }} # Upload MegaLinter artifacts - name: Archive production artifacts diff --git a/.github/workflows/spelling.yml b/.github/workflows/spelling.yml index f972f437a5..54495f01f5 100644 --- a/.github/workflows/spelling.yml +++ b/.github/workflows/spelling.yml @@ -60,12 +60,12 @@ name: Check Spelling on: push: branches: - - "**" + - "main" tags-ignore: - "**" pull_request_target: branches: - - "**" + - "main" types: - "opened" - "reopened" diff --git a/.lycheeignore b/.lycheeignore index 582d7a270a..e5d6d23055 100644 --- a/.lycheeignore +++ b/.lycheeignore @@ -1,2 +1,19 @@ +http://cvmfs-release01.gridpp.rl.ac.uk/* +http://localhost +https://aai.egi.eu/LoA +https://aai.egi.eu/proxy +https://b2drop.eudat.eu/settings/user/security https://docs.egi.eu/documentation/* +https://github.com/* +https://goc.egi.eu/gocdbpi +https://helpdesk.egi.eu https://megalinter.io/* +https://omnibenchmark.org/* +https://operations-portal.egi.eu/downtimes/subscription +https://operations-portal.egi.eu/home/tasksList +https://operations-portal.egi.eu/vo +https://servproject.i3m.upv.es/ec3-ltos/ +https://tools.ietf.org/html/rfc* +https://training.notebooks.egi.eu +https://voms2.hellasgrid.gr:8443/voms* +https://www.eugridpma.org/your-identity/ diff --git a/content/en/users/compute/software-distribution/_index.md b/content/en/users/compute/software-distribution/_index.md index fa6a1f7342..87fe0008a4 100644 --- a/content/en/users/compute/software-distribution/_index.md +++ b/content/en/users/compute/software-distribution/_index.md @@ -70,6 +70,9 @@ The current list of EGI repositories is as follows | wenmr.egi.eu | | | west-life.egi.eu | | +The list of EGI repositories can also be found online via +[the CVMFS monitor](http://cvmfs-release01.gridpp.rl.ac.uk/cvmfsmonitor/). + This documentation is for the VO content managers. ## Official CVMFS pages