-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate CI makrdown link check to Github actions (#349)
* Implement link checker in Github actions * Test ignorePatterns in markdown link check CI job * Test ignorePatterns in markdown link check CI job * Update link check to npm run-script * Fix typo in link check workflow and package.json * Update link-check npm command * Update link-check npm command * Update link-check npm command * Change the markdown link checker cofig file name mlc_config.json to markdown-link-check-config.json * Implement step to show brocken links after running link checker in CI * Update link checker to add comment with broken links in PR * chore: HTTPS all bean validation links * chore: C toolchain links update * chore: rm non-existent link * chore: rm non existent pdf * chore: clickjacking link update * chore: rm RSnake ref from XSS CS * chore: http to https link * chore: update dotnet links * chore: update error handling links * chore: logging links update * chore: update php links * chore: update owasp link in ruby CS * chore: rm avantssar links * chore: ibm links update * chore: tls links update * chore: jwall web archive * chore: update xerces links * chore: web archive old link * chore: owasp links * chore: filter evasion CS link * chore: rm dead link @rbsec * chore: more links * chore: json lint * chore: ignore working patterns * chore: after merge broken links * chore: php.net TLS ->www.php.net * chore: msdn to doc * chore: file upload CS Co-authored-by: Elie Saad <[email protected]> Co-authored-by: ThunderSon <[email protected]>
- Loading branch information
1 parent
c245734
commit 76b585f
Showing
59 changed files
with
369 additions
and
309 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,41 @@ | ||
name: Markdown Link Check | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
link-check: | ||
runs-on: ubuntu-latest | ||
env: | ||
CI: true | ||
steps: | ||
- name: Setup Action | ||
uses: actions/checkout@v1 | ||
- name: Setup Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12.x | ||
- name: Install dependencies | ||
run: npm install -g markdown-link-check | ||
- name: Run link check | ||
run: npm run-script link-check | ||
- name: Show broken links | ||
if: failure() | ||
run: | | ||
cat log | awk -v RS="FILE:" 'match($0, /(\S*\.md).*\[✖\].*(\d*\slinks\schecked\.)(.*)/, arr ) { print "FILE:"arr[1] arr[3] > "brokenlinks"}' | ||
rm -f err log | ||
cat brokenlinks | ||
links=`cat brokenlinks` | ||
links="${links//'%'/'%25'}" | ||
links="${links//$'\n'/'%0A'}" | ||
links="${links//$'\r'/'%0D'}" | ||
echo ::set-output name=links::**Following links are broken:** %0A$links | ||
- name: Send comment to PR with broken links | ||
if: failure() && github.event_name == 'pull_request' | ||
uses: thollander/actions-comment-pull-request@master | ||
with: | ||
message: ${{ steps.brokenlinks.outputs.links }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ Sorting applied on the name is an alphabetical one. | |
**[Abuse Case Cheat Sheet](https://github.com/OWASP/CheatSheetSeries/tree/master/cheatsheets/Abuse_Case_Cheat_Sheet.md)** | ||
* Dominique Righetto - [email protected] | ||
* James Robinson - [email protected] | ||
* [Rick Mitchell](https://www.owasp.org/index.php/User:Rick.mitchell) | ||
* Rick Mitchell | ||
|
||
**[Access Control Cheat Sheet](https://github.com/OWASP/CheatSheetSeries/tree/master/cheatsheets/Access_Control_Cheat_Sheet.md)** | ||
* Adinath Raveendra Raj - [email protected] | ||
|
@@ -218,7 +218,7 @@ Sorting applied on the name is an alphabetical one. | |
* Kevin Wall - [email protected] | ||
* Ricardo Iramar - [email protected] | ||
|
||
**[Protect FileUpload Against Malicious File](https://github.com/OWASP/CheatSheetSeries/tree/master/cheatsheets/Protect_FileUpload_Against_Malicious_File.md)** | ||
**Protect FileUpload Against Malicious File** | ||
* Dominique Righetto - [email protected] | ||
|
||
**[Query Parameterization Cheat Sheet](https://github.com/OWASP/CheatSheetSeries/tree/master/cheatsheets/Query_Parameterization_Cheat_Sheet.md)** | ||
|
@@ -313,7 +313,7 @@ Sorting applied on the name is an alphabetical one. | |
* Ryan Barnett - [email protected] | ||
|
||
**[Vulnerability Disclosure Cheat Sheet](https://github.com/OWASP/CheatSheetSeries/tree/master/cheatsheets/Vulnerability_Disclosure_Cheat_Sheet.md)** | ||
* [OWASP Montréal](https://www.owasp.org/index.php/Montréal) chapter | ||
* [OWASP Montréal](https://owasp.org/www-chapter-montreal/) chapter | ||
* [@el_d33](https://twitter.com/el_d33) | ||
* [gosecure.ca](https://gosecure.net/) | ||
|
||
|
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 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 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 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
Oops, something went wrong.