From 0afef13d98c19913fda8716fa0c275eed6faa476 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 16 Jan 2024 15:33:20 +0000 Subject: [PATCH 01/12] Added mlc_config and set 403 as an alive status code --- .github/workflows/markdown-link-checker.yml | 3 ++- .github/workflows/mlc_config.json | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/mlc_config.json diff --git a/.github/workflows/markdown-link-checker.yml b/.github/workflows/markdown-link-checker.yml index 42c6146..0a63edf 100644 --- a/.github/workflows/markdown-link-checker.yml +++ b/.github/workflows/markdown-link-checker.yml @@ -1,6 +1,6 @@ name: Markdown Link Checker -on: +on: push: branches: - main @@ -21,6 +21,7 @@ jobs: with: use-quiet-mode: 'yes' use-verbose-mode: 'yes' + config-file: 'mlc_config.json' - name: Sleep for 3hrs if: ${{ steps.markdownlinkcheck.outcome == 'failure' && steps.markdownlinkcheck.conclusion == 'success' }} uses: juliangruber/sleep-action@v1 diff --git a/.github/workflows/mlc_config.json b/.github/workflows/mlc_config.json new file mode 100644 index 0000000..11626dc --- /dev/null +++ b/.github/workflows/mlc_config.json @@ -0,0 +1,3 @@ +{ + "aliveStatusCodes": [403, 200] +} \ No newline at end of file From 93d30977e3f4cf68fd76f4b232b46b6a0922e363 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 16 Jan 2024 15:36:45 +0000 Subject: [PATCH 02/12] Update config file path in markdown-link-checker.yml --- .github/workflows/markdown-link-checker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/markdown-link-checker.yml b/.github/workflows/markdown-link-checker.yml index 0a63edf..0766bd9 100644 --- a/.github/workflows/markdown-link-checker.yml +++ b/.github/workflows/markdown-link-checker.yml @@ -21,7 +21,7 @@ jobs: with: use-quiet-mode: 'yes' use-verbose-mode: 'yes' - config-file: 'mlc_config.json' + config-file: '.github/workflows/mlc_config.json' - name: Sleep for 3hrs if: ${{ steps.markdownlinkcheck.outcome == 'failure' && steps.markdownlinkcheck.conclusion == 'success' }} uses: juliangruber/sleep-action@v1 From 4e7583a952767916e95fcc03124deac860964287 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 16 Jan 2024 15:41:47 +0000 Subject: [PATCH 03/12] Add config file for markdown link checker --- .github/workflows/markdown-link-checker.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/markdown-link-checker.yml b/.github/workflows/markdown-link-checker.yml index 0766bd9..0967f1c 100644 --- a/.github/workflows/markdown-link-checker.yml +++ b/.github/workflows/markdown-link-checker.yml @@ -33,3 +33,4 @@ jobs: with: use-quiet-mode: 'yes' use-verbose-mode: 'yes' + config-file: '.github/workflows/mlc_config.json' From e0df6088744d29acd79521f33e7b12dcbc713765 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 16 Jan 2024 15:49:38 +0000 Subject: [PATCH 04/12] Testing httpHeaders --- .github/workflows/mlc_config.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/mlc_config.json b/.github/workflows/mlc_config.json index 11626dc..1a6c6ad 100644 --- a/.github/workflows/mlc_config.json +++ b/.github/workflows/mlc_config.json @@ -1,3 +1,12 @@ { - "aliveStatusCodes": [403, 200] + "httpHeaders": [ + { + "urls": [ + "https://www.reddit.com/r/AzureBicep" + ], + "headers": { + "Accept-Encoding": "zstd, br, gzip, deflate" + } + } + ] } \ No newline at end of file From bdd7d1302de6a9821700551205b570524e26aa3b Mon Sep 17 00:00:00 2001 From: John Date: Tue, 16 Jan 2024 16:05:34 +0000 Subject: [PATCH 05/12] Update ignorePatterns in mlc_config.json --- .github/workflows/mlc_config.json | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/mlc_config.json b/.github/workflows/mlc_config.json index 1a6c6ad..354820e 100644 --- a/.github/workflows/mlc_config.json +++ b/.github/workflows/mlc_config.json @@ -1,12 +1,7 @@ { - "httpHeaders": [ + "ignorePatterns": [ { - "urls": [ - "https://www.reddit.com/r/AzureBicep" - ], - "headers": { - "Accept-Encoding": "zstd, br, gzip, deflate" - } + "pattern": "^http://reddit.com" } - ] + ] } \ No newline at end of file From 1516d137f5e173177e62b70bbba3ed69e5e5b3d1 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 30 Jan 2024 11:18:12 +0100 Subject: [PATCH 06/12] Update mlc_config.json --- .github/workflows/mlc_config.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/mlc_config.json b/.github/workflows/mlc_config.json index 354820e..6d5aff7 100644 --- a/.github/workflows/mlc_config.json +++ b/.github/workflows/mlc_config.json @@ -1,7 +1,7 @@ { "ignorePatterns": [ { - "pattern": "^http://reddit.com" + "pattern": "^https://www.reddit.com" } ] -} \ No newline at end of file +} From f9e174f1b19d1d235c2f4051e1d82eecb0975b4a Mon Sep 17 00:00:00 2001 From: John Date: Tue, 30 Jan 2024 11:31:24 +0100 Subject: [PATCH 07/12] Update mlc_config.json --- .github/workflows/mlc_config.json | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/mlc_config.json b/.github/workflows/mlc_config.json index 6d5aff7..dd65df9 100644 --- a/.github/workflows/mlc_config.json +++ b/.github/workflows/mlc_config.json @@ -1,7 +1,12 @@ { - "ignorePatterns": [ - { - "pattern": "^https://www.reddit.com" - } - ] + "httpHeaders": [ + { + "urls": [ + "https://www.reddit.com" + ], + "headers": { + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36" + } + } + ] } From c1b570588f7c1b5d51477bc741e478f822c42b79 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 30 Jan 2024 11:33:20 +0100 Subject: [PATCH 08/12] Update mlc_config.json --- .github/workflows/mlc_config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/mlc_config.json b/.github/workflows/mlc_config.json index dd65df9..0f567bf 100644 --- a/.github/workflows/mlc_config.json +++ b/.github/workflows/mlc_config.json @@ -5,7 +5,7 @@ "https://www.reddit.com" ], "headers": { - "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36" + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36" } } ] From 241ac881259e5fd392f83449a7f336526a1211bd Mon Sep 17 00:00:00 2001 From: John Date: Tue, 30 Jan 2024 11:34:56 +0100 Subject: [PATCH 09/12] Update mlc_config.json --- .github/workflows/mlc_config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/mlc_config.json b/.github/workflows/mlc_config.json index 0f567bf..47a9307 100644 --- a/.github/workflows/mlc_config.json +++ b/.github/workflows/mlc_config.json @@ -2,7 +2,7 @@ "httpHeaders": [ { "urls": [ - "https://www.reddit.com" + "https://www.reddit.com/r/AzureBicep/" ], "headers": { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36" From 266f1f66a9e59e9f26a9c16f3b46e0b6c7d3081d Mon Sep 17 00:00:00 2001 From: John Date: Tue, 30 Jan 2024 11:41:38 +0100 Subject: [PATCH 10/12] Update mlc_config.json --- .github/workflows/mlc_config.json | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/mlc_config.json b/.github/workflows/mlc_config.json index 47a9307..a24fc83 100644 --- a/.github/workflows/mlc_config.json +++ b/.github/workflows/mlc_config.json @@ -2,10 +2,15 @@ "httpHeaders": [ { "urls": [ - "https://www.reddit.com/r/AzureBicep/" + "https://www.reddit.com" ], "headers": { - "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36" + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36", + "Upgrade-Insecure-Requests": "1", + "Connection": "keep-alive", + "Accept-Language": "en-US,en;q=0.5", + "Accept-Encoding": "gzip, deflate, br", + "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8" } } ] From 413f99c5dc5e28c495161b9cc1c1f13a2c887ee3 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 30 Jan 2024 11:44:01 +0100 Subject: [PATCH 11/12] Removed deleted project --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 7c0516e..c443917 100644 --- a/README.md +++ b/README.md @@ -95,7 +95,6 @@ Hand-picked tips and tricks to help you learn Azure Bicep and get you ready to s - [Bicep Testing Framework (BenchPress)](https://github.com/Azure/benchpress) - [Bicep type definitions for ARM resources](https://github.com/Azure/bicep-types-az) - [Common Azure Resource Modules Library (CARML)](https://github.com/Azure/ResourceModules) -- [Guardrails Solution Accelerator for Canadian Public Sector - Bicep setup](https://github.com/Azure/GuardrailsSolutionAccelerator/tree/main/setup/IaC) - [Project Bicep - an ARM DSL](https://github.com/Azure/bicep) - [Template Best Practice Analyzer (BPA)](https://github.com/Azure/template-analyzer) From ce73038866aa4c5e2fe35ae775085c6d2bd5b17e Mon Sep 17 00:00:00 2001 From: John Date: Tue, 30 Jan 2024 11:45:45 +0100 Subject: [PATCH 12/12] Update mlc_config.json --- .github/workflows/mlc_config.json | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/mlc_config.json b/.github/workflows/mlc_config.json index a24fc83..ddd5afa 100644 --- a/.github/workflows/mlc_config.json +++ b/.github/workflows/mlc_config.json @@ -1,17 +1,7 @@ { - "httpHeaders": [ + "ignorePatterns": [ { - "urls": [ - "https://www.reddit.com" - ], - "headers": { - "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36", - "Upgrade-Insecure-Requests": "1", - "Connection": "keep-alive", - "Accept-Language": "en-US,en;q=0.5", - "Accept-Encoding": "gzip, deflate, br", - "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8" - } + "pattern": "^https://www.reddit.com" } ] }