Skip to content

pySCG: Fix broken internal and external links in Secure-Coding-Guide-for-Python #839

Open
@tommcd

Description

@tommcd

Fix the following broken internal links:

Testing 165 internal links...
\wg-best-practices-os-developers\docs\Secure-Coding-Guide-for-Python\CONTRIBUTING.md: 0 valid, 2 broken internal links
⚠️ Broken internal links:
- README_TEMPLATE.md (line 93): README_TEMPLATE.md
- ../Intro_to_multiprocessing_and_multithreading/readme.md (line 115): Introduction to Multithreading and Multiprocessing
\wg-best-practices-os-developers\docs\Secure-Coding-Guide-for-Python\readme.md: 38 valid, 5 broken internal links
⚠️ Broken internal links:
- LICENSE/CC-BY-4.0.txt (line 16): CC-BY-4.0
- LICENSE/MIT.txt (line 16): MIT
- CWE-664/XXX-005/. (line 64): XXX-005: Consider hash-based integrity verification of byte code files against their source code files
- LICENSE/CC-BY-4.0.txt (line 16): CC-BY 4.0
- LICENSE/MIT.txt (line 16): MIT
\wg-best-practices-os-developers\docs\Secure-Coding-Guide-for-Python\CWE-664\CWE-681\01\README.md: 2 valid, 1 broken internal links
⚠️ Broken internal links:
- en.wikipedia.org (line 3): Wikipedia 2025
\wg-best-practices-os-developers\docs\Secure-Coding-Guide-for-Python\CWE-682\CWE-1335\01\README.md: 6 valid, 1 broken internal links
⚠️ Broken internal links:
- ../CWE-191/README.md (line 95): CWE-191, Integer Underflow (Wrap or Wraparound)
\wg-best-practices-os-developers\docs\Secure-Coding-Guide-for-Python\CWE-707\CWE-78\README.md: 3 valid, 1 broken internal links
⚠️ Broken internal links:
- hhttps://cwe.mitre.org/data/definitions/707.html (line 198): CWE-707: Improper Neutralization
\wg-best-practices-os-developers\docs\Secure-Coding-Guide-for-Python\templates\README_TEMPLATE.md: 0 valid, 3 broken internal links
⚠️ Broken internal links:
- example01.py (line 7): example01.py:
- noncompliant01.py (line 25): noncompliant01.py
- compliant01.py (line 25): compliant01.py

Summary: 152 valid and 13 broken internal links

Check and fix the following broken external links:

ℹ️ Info: Some links with Status 403 can be false positives they can be ignored if the link works when manually checked.
Example links such as "https://cwe.mitre.org/data/definitions/000.html" and ""http://YOUR_LINK" should probable be changed so they will not give false positives if a linkchecker is added globally fo rthe repo.

Testing 561 external links...
Testing external links: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 561/561 [08:56<00:00, 1.05it/s]
\wg-best-practices-os-developers\docs\Secure-Coding-Guide-for-Python\CONTRIBUTING.md: 3 valid, 1 broken external links
⚠️ Broken external links:
- https://github.com/ossf/wg-best-practices-os-developers/docs/Secure-Coding-Guide-for-Python/ (line 3): Status code: 404
\wg-best-practices-os-developers\docs\Secure-Coding-Guide-for-Python\CWE-664\CWE-134\README.md: 22 valid, 1 broken external links
⚠️ Broken external links:
- https://www.securecoding.cert.org/confluence/display/perl/CERT+Perl+Secure+Coding+Standard (line 134): Status code: 404
\wg-best-practices-os-developers\docs\Secure-Coding-Guide-for-Python\CWE-664\CWE-426\README.md: 20 valid, 1 broken external links
⚠️ Broken external links:
- http://sourceforge.net/projects/owasp/files/Guide/2.0.1/OWASPGuide2.0.1.pdf/download (line 83): Status code: 403
\wg-best-practices-os-developers\docs\Secure-Coding-Guide-for-Python\CWE-682\CWE-191\README.md: 15 valid, 1 broken external links
⚠️ Broken external links:
- https://github.com/python/cpython/blob/main/Modules/mathmodule.c) (line 124): Status code: 404
\wg-best-practices-os-developers\docs\Secure-Coding-Guide-for-Python\CWE-693\CWE-330\README.md: 28 valid, 2 broken external links
⚠️ Broken external links:
- https://dl.acm.org/doi/pdf/10.1145/272991.272995 (line 10): Status code: 403
- https://dl.acm.org/doi/pdf/10.1145/272991.272995 (line 10): Status code: 403
\wg-best-practices-os-developers\docs\Secure-Coding-Guide-for-Python\CWE-707\CWE-78\README.md: 28 valid, 1 broken external links
⚠️ Broken external links:
- https://cwe.mitre.org/data/definitions/000.html (line 199): Status code: 404
\wg-best-practices-os-developers\docs\Secure-Coding-Guide-for-Python\CWE-707\CWE-89\README.md: 21 valid, 4 broken external links
⚠️ Broken external links:
- https://dev.mysql.com/doc/mysql-shell/8.0/en/mysql-shell-commands.html (line 7): Status code: 403
- http://sourceforge.net/projects/owasp/files/Guide/2.0.1/OWASPGuide2.0.1.pdf/download (line 285): Status code: 403
- https://dev.mysql.com/doc/mysql-shell/8.0/en/mysql-shell-commands.html] (line 293): Status code: 403
- http://sourceforge.net/projects/owasp/files/Guide/2.0.1/OWASPGuide2.0.1.pdf/download (line 285): Status code: 403
\wg-best-practices-os-developers\docs\Secure-Coding-Guide-for-Python\templates\README_TEMPLATE.md: 6 valid, 6 broken external links
⚠️ Broken external links:
- https://cwe.mitre.org/data/definitions/000.html (line 72): Status code: 404
- https://cwe.mitre.org/data/definitions/000.html (line 72): Status code: 404
- http://YOUR_LINK (line 74): HTTPConnectionPool(host='your_link', port=80): Max retries exceeded with url: / (Caused by NameResolutionError("<urllib3.connection.HTTPConnection object at 0x000001A60E8975F0>: Failed to resolve 'your_link' ([Errno 11001] getaddrinfo failed)"))
- http://YOUR_LINK (line 74): HTTPConnectionPool(host='your_link', port=80): Max retries exceeded with url: / (Caused by NameResolutionError("<urllib3.connection.HTTPConnection object at 0x000001A60E92FD40>: Failed to resolve 'your_link' ([Errno 11001] getaddrinfo failed)"))
- http://YOUR_LINK (line 74): HTTPConnectionPool(host='your_link', port=80): Max retries exceeded with url: / (Caused by NameResolutionError("<urllib3.connection.HTTPConnection object at 0x000001A60EA7F080>: Failed to resolve 'your_link' ([Errno 11001] getaddrinfo failed)"))
- https://docs.python.org/3/reference/YOUR_LINK (line 82): Status code: 404

Summary: 544 valid and 17 broken external links

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions