peter-evans / link-checker Goto Github PK
View Code? Open in Web Editor NEWA GitHub action for link checking repository Markdown and HTML files
License: MIT License
A GitHub action for link checking repository Markdown and HTML files
License: MIT License
Trying to use the -d switch like so;
args: -d jme-wiki/docs -x ^(.*)(M|m)(.*)(E|e)(ngine/wiki)(/edit/master.*)?$ -v -r -c 32 *
yet the out.md shows that its always checking from the root of repository, i.e shows the LICENSE, README.md, the out.md, every folder gets checked.
Maybe I am not interpreting the use of the switch properly?
-d, --document-root Set document root directory for absolute paths.
To me this says set the directory to search from but it is searching folders above it, including root. There is no way to pass any arguments to the action itself to select the proper directory so this -d switch is the only option unless you know of some other way to do it, outside of setting the working-directory on a job level.
@peter-evans - I have configured the Link Checker as follows.
on: [push]
name: Link Checker Example Command
jobs:
linkChecker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Link Checker
id: lc
uses: peter-evans/link-checker@v1
with:
args: -r learn swan-lake 1.1 1.0 -x 0.990 -d /ballerina-dev-website/
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: Link Checker Report
path: ./link-checker/out.md
However, the links that already available also get listed as no such file or directory
as shown below.
How do I define the root directory -d
correctly for absolute paths in the Liche arguments?
A new version of Liche was released yesterday. Could we make sure we use the latest and greatest?
@peter-evans - Is there a way to omit the OK
links and print only the ERROR
ones in the out.md
file?
Errors were reported while checking the connectivity of links.
entrypoint.sh
LICENSE
action.yml
Dockerfile
ERROR https://github.com/peter-evans/link-checker"
Not Found (HTTP error 404)
README.md
OK LICENSE
OK https://github.com/marketplace/actions/link-checker
OK https://github.com/peter-evans/create-issue-from-file
OK https://github.com/peter-evans/link-checker/issues/1
OK https://github.com/raviqqe/liche
OK https://img.shields.io/badge/Marketplace-Link%20Checker-blue.svg?colorA=24292e&colorB=0366d6&style=flat&longCache=true&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAM6wAADOsB5dZE0gAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAERSURBVCiRhZG/SsMxFEZPfsVJ61jbxaF0cRQRcRJ9hlYn30IHN/+9iquDCOIsblIrOjqKgy5aKoJQj4O3EEtbPwhJbr6Te28CmdSKeqzeqr0YbfVIrTBKakvtOl5dtTkK+v4HfA9PEyBFCY9AGVgCBLaBp1jPAyfAJ/AAdIEG0dNAiyP7+K1qIfMdonZic6+WJoBJvQlvuwDqcXadUuqPA1NKAlexbRTAIMvMOCjTbMwl1LtI/6KWJ5Q6rT6Ht1MA58AX8Apcqqt5r2qhrgAXQC3CZ6i1+KMd9TRu3MvA3aH/fFPnBodb6oe6HM8+lYHrGdRXW8M9bMZtPXUji69lmf5Cmamq7quNLFZXD9Rq7v0Bpc1o/tp0fisAAAAASUVORK5CYII=
ERROR https://aoushaoueshosuhoshuoeu.com
Lookup aoushaoueshosuhoshuoeu.com on 168.63.129.16:53: no such host
@peter-evans - I have configured the link-checker as follows:
on: [push]
name: Check markdown links
jobs:
linkChecker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Link Checker
id: lc
uses: peter-evans/link-checker@v1
- name: Create Issue From File
uses: peter-evans/create-issue-from-file@v2
with:
title: Link Checker Report
content-filepath: ./link-checker/out.md
labels: report, automated issue
assignees: praneesha
- name: Fail if there were link errors
run: exit ${{ steps.lc.outputs.exit_code }}
I am getting the below error.
github.GithubException.GithubException: 422 {"message": "Validation Failed", "errors": [{"resource": "Issue", "code": "custom", "field": "body", "message": "body is too long (maximum is 65536 characters)"}], "documentation_url": "https://docs.github.com/rest/reference/issues#create-an-issue"}
How can I get this resolved?
I've been having an issue recently with the LinkChecker being unable to check some links. All the links are to discord.gg and the errors are like the below:
ERROR https://discord.gg/0g95XxxKRcw7ypJZ
Error when reading response headers: small read buffer. Increase ReadBufferSize. Buffer size=4096, contents: "HTTP/1.1 200 OK\r\nDate: Sun, 13 Dec 2020 01:47:32 GMT\r\nContent-Type: text/html\r\nContent-Length: 5470\r\nConnection: close\r\nSet-Cookie: __cfduid=d7b69115ea34f9523c2f3fe70066c7f4f1607824052; expires=Tue, 1"..."UTKYEGSvaOPAuH6BsXOw%2BzPXlC2mg%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}\r\nNel: {\"report_to\":\"cf-nel\",\"max_age\":604800}\r\nServer: cloudflare\r\nAlt-Svc: h3-27=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, "
I don't see an arg to increase the read buffer, do you know of a solution?
I use Antora for building my doc site. When it builds pages, it adds the same table of contents and header to every page. Every link has the same class of nav-link
. As my site is over 250+ pages, this means that there are thousands of these duplicated links.
Sites will start timing things out after so many hits so I get thousands of these "Too Many Requests (HTTP error 429)" with default of 512 concurrent HTTP requests. I reduced this down to 32 to slow things down and this reduces the errors down to the hundreds.
I skip the links that are never going to change in the header using a regex but the ones in the TOC are always changing.
Are there any other configurations I could take advantage of to reduce these errors from the TOC? Like maybe skipping based off a class in the href?
@peter-evans - I have fixed all the broken links and now I get only the error below in my report.
How can I get rid of this to get an empty report? My config is as follows:
on: [pull_request]
name: Link Checker Example Command
jobs:
linkChecker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the site
uses: shafreenAnfar/jekyll-build-action@v5
- name: Link Checker
id: lc
uses: peter-evans/link-checker@v1
with:
args: -r learn swan-lake 1.1 1.0 -x 0.990 https?:// -d ./_site
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: Link Checker Report
path: ./link-checker/out.md
- name: Fail if there were link errors
run: exit ${{ steps.lc.outputs.exit_code }}
Errors were reported while checking the connectivity of links.
entrypoint.sh
LICENSE
action.yml
Dockerfile
ERROR https://github.com/peter-evans/link-checker"
Not Found (HTTP error 404)
README.md
OK LICENSE
OK https://github.com/marketplace/actions/link-checker
OK https://github.com/peter-evans/create-issue-from-file
OK https://github.com/peter-evans/link-checker/issues/1
OK https://github.com/raviqqe/liche
OK https://img.shields.io/badge/Marketplace-Link%20Checker-blue.svg?colorA=24292e&colorB=0366d6&style=flat&longCache=true&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAM6wAADOsB5dZE0gAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAERSURBVCiRhZG/SsMxFEZPfsVJ61jbxaF0cRQRcRJ9hlYn30IHN/+9iquDCOIsblIrOjqKgy5aKoJQj4O3EEtbPwhJbr6Te28CmdSKeqzeqr0YbfVIrTBKakvtOl5dtTkK+v4HfA9PEyBFCY9AGVgCBLaBp1jPAyfAJ/AAdIEG0dNAiyP7+K1qIfMdonZic6+WJoBJvQlvuwDqcXadUuqPA1NKAlexbRTAIMvMOCjTbMwl1LtI/6KWJ5Q6rT6Ht1MA58AX8Apcqqt5r2qhrgAXQC3CZ6i1+KMd9TRu3MvA3aH/fFPnBodb6oe6HM8+lYHrGdRXW8M9bMZtPXUji69lmf5Cmamq7quNLFZXD9Rq7v0Bpc1o/tp0fisAAAAASUVORK5CYII=
ERROR https://aoushaoueshosuhoshuoeu.com
Lookup aoushaoueshosuhoshuoeu.com on 168.63.129.16:53: no such host
Errors were reported while checking the connectivity of links.
entrypoint.sh
LICENSE
action.yml
Dockerfile
ERROR https://github.com/peter-evans/link-checker"
Not Found (HTTP error 404)
README.md
OK LICENSE
OK https://github.com/marketplace/actions/link-checker
OK https://github.com/peter-evans/create-issue-from-file
OK https://github.com/peter-evans/link-checker/issues/1
OK https://github.com/raviqqe/liche
OK https://img.shields.io/badge/Marketplace-Link%20Checker-blue.svg?colorA=24292e&colorB=0366d6&style=flat&longCache=true&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAM6wAADOsB5dZE0gAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAERSURBVCiRhZG/SsMxFEZPfsVJ61jbxaF0cRQRcRJ9hlYn30IHN/+9iquDCOIsblIrOjqKgy5aKoJQj4O3EEtbPwhJbr6Te28CmdSKeqzeqr0YbfVIrTBKakvtOl5dtTkK+v4HfA9PEyBFCY9AGVgCBLaBp1jPAyfAJ/AAdIEG0dNAiyP7+K1qIfMdonZic6+WJoBJvQlvuwDqcXadUuqPA1NKAlexbRTAIMvMOCjTbMwl1LtI/6KWJ5Q6rT6Ht1MA58AX8Apcqqt5r2qhrgAXQC3CZ6i1+KMd9TRu3MvA3aH/fFPnBodb6oe6HM8+lYHrGdRXW8M9bMZtPXUji69lmf5Cmamq7quNLFZXD9Rq7v0Bpc1o/tp0fisAAAAASUVORK5CYII=
ERROR https://aoushaoueshosuhoshuoeu.com
Lookup aoushaoueshosuhoshuoeu.com on 168.63.129.16:53: no such host
Errors were reported while checking the connectivity of links.
entrypoint.sh
LICENSE
action.yml
Dockerfile
ERROR https://github.com/peter-evans/link-checker"
Not Found (HTTP error 404)
README.md
OK LICENSE
OK https://github.com/marketplace/actions/link-checker
OK https://github.com/peter-evans/create-issue-from-file
OK https://github.com/peter-evans/link-checker/issues/1
OK https://github.com/raviqqe/liche
OK https://img.shields.io/badge/Marketplace-Link%20Checker-blue.svg?colorA=24292e&colorB=0366d6&style=flat&longCache=true&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAM6wAADOsB5dZE0gAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAERSURBVCiRhZG/SsMxFEZPfsVJ61jbxaF0cRQRcRJ9hlYn30IHN/+9iquDCOIsblIrOjqKgy5aKoJQj4O3EEtbPwhJbr6Te28CmdSKeqzeqr0YbfVIrTBKakvtOl5dtTkK+v4HfA9PEyBFCY9AGVgCBLaBp1jPAyfAJ/AAdIEG0dNAiyP7+K1qIfMdonZic6+WJoBJvQlvuwDqcXadUuqPA1NKAlexbRTAIMvMOCjTbMwl1LtI/6KWJ5Q6rT6Ht1MA58AX8Apcqqt5r2qhrgAXQC3CZ6i1+KMd9TRu3MvA3aH/fFPnBodb6oe6HM8+lYHrGdRXW8M9bMZtPXUji69lmf5Cmamq7quNLFZXD9Rq7v0Bpc1o/tp0fisAAAAASUVORK5CYII=
ERROR https://aoushaoueshosuhoshuoeu.com
Lookup aoushaoueshosuhoshuoeu.com on 168.63.129.16:53: no such host
Errors were reported while checking the connectivity of links.
entrypoint.sh
LICENSE
Dockerfile
OK https://github.com/peter-evans/link-checker"
README.md
OK LICENSE
OK https://github.com/marketplace/actions/link-checker
OK https://github.com/peter-evans/create-issue-from-file
OK https://github.com/peter-evans/link-checker/issues/1
OK https://github.com/raviqqe/liche
OK https://img.shields.io/badge/Marketplace-Link%20Checker-blue.svg?colorA=24292e&colorB=0366d6&style=flat&longCache=true&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAM6wAADOsB5dZE0gAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAERSURBVCiRhZG/SsMxFEZPfsVJ61jbxaF0cRQRcRJ9hlYn30IHN/+9iquDCOIsblIrOjqKgy5aKoJQj4O3EEtbPwhJbr6Te28CmdSKeqzeqr0YbfVIrTBKakvtOl5dtTkK+v4HfA9PEyBFCY9AGVgCBLaBp1jPAyfAJ/AAdIEG0dNAiyP7+K1qIfMdonZic6+WJoBJvQlvuwDqcXadUuqPA1NKAlexbRTAIMvMOCjTbMwl1LtI/6KWJ5Q6rT6Ht1MA58AX8Apcqqt5r2qhrgAXQC3CZ6i1+KMd9TRu3MvA3aH/fFPnBodb6oe6HM8+lYHrGdRXW8M9bMZtPXUji69lmf5Cmamq7quNLFZXD9Rq7v0Bpc1o/tp0fisAAAAASUVORK5CYII=
ERROR https://aoushaoueshosuhoshuoeu.com
Lookup aoushaoueshosuhoshuoeu.com on 168.63.129.16:53: no such host
Errors were reported while checking the connectivity of links.
LICENSE
entrypoint.sh
action.yml
Dockerfile
ERROR https://github.com/peter-evans/link-checker"
Not Found (HTTP error 404)
README.md
OK LICENSE
OK https://github.com/marketplace/actions/link-checker
OK https://github.com/peter-evans/create-issue-from-file
OK https://github.com/peter-evans/link-checker/issues/1
OK https://github.com/raviqqe/liche
OK https://img.shields.io/badge/Marketplace-Link%20Checker-blue.svg?colorA=24292e&colorB=0366d6&style=flat&longCache=true&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAM6wAADOsB5dZE0gAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAERSURBVCiRhZG/SsMxFEZPfsVJ61jbxaF0cRQRcRJ9hlYn30IHN/+9iquDCOIsblIrOjqKgy5aKoJQj4O3EEtbPwhJbr6Te28CmdSKeqzeqr0YbfVIrTBKakvtOl5dtTkK+v4HfA9PEyBFCY9AGVgCBLaBp1jPAyfAJ/AAdIEG0dNAiyP7+K1qIfMdonZic6+WJoBJvQlvuwDqcXadUuqPA1NKAlexbRTAIMvMOCjTbMwl1LtI/6KWJ5Q6rT6Ht1MA58AX8Apcqqt5r2qhrgAXQC3CZ6i1+KMd9TRu3MvA3aH/fFPnBodb6oe6HM8+lYHrGdRXW8M9bMZtPXUji69lmf5Cmamq7quNLFZXD9Rq7v0Bpc1o/tp0fisAAAAASUVORK5CYII=
ERROR https://aoushaoueshosuhoshuoeu.com
Lookup aoushaoueshosuhoshuoeu.com on 168.63.129.16:53: no such host
@peter-evans - Need your kind help once again.
I am getting this "Too Many Requests (HTTP error 429)" Error in the out.md
file when calling to external sites as shown below.
Is there a way to get this resolved or to skip displaying these in the out.md
file?
Hey, any chance we could mention AreYouOk https://github.com/Bhupesh-V/areyouok as a link health checker?
Here is a demo, where AreYouOk uses issues to communicate dead links Bhupesh-V/til#27
thanks to create-issue-from-file ❤️
Errors were reported while checking the connectivity of links.
entrypoint.sh
LICENSE
action.yml
Dockerfile
ERROR https://github.com/peter-evans/link-checker"
Not Found (HTTP error 404)
README.md
OK LICENSE
OK https://github.com/marketplace/actions/link-checker
OK https://github.com/peter-evans/create-issue-from-file
OK https://github.com/peter-evans/link-checker/issues/1
OK https://github.com/raviqqe/liche
OK https://img.shields.io/badge/Marketplace-Link%20Checker-blue.svg?colorA=24292e&colorB=0366d6&style=flat&longCache=true&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAM6wAADOsB5dZE0gAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAERSURBVCiRhZG/SsMxFEZPfsVJ61jbxaF0cRQRcRJ9hlYn30IHN/+9iquDCOIsblIrOjqKgy5aKoJQj4O3EEtbPwhJbr6Te28CmdSKeqzeqr0YbfVIrTBKakvtOl5dtTkK+v4HfA9PEyBFCY9AGVgCBLaBp1jPAyfAJ/AAdIEG0dNAiyP7+K1qIfMdonZic6+WJoBJvQlvuwDqcXadUuqPA1NKAlexbRTAIMvMOCjTbMwl1LtI/6KWJ5Q6rT6Ht1MA58AX8Apcqqt5r2qhrgAXQC3CZ6i1+KMd9TRu3MvA3aH/fFPnBodb6oe6HM8+lYHrGdRXW8M9bMZtPXUji69lmf5Cmamq7quNLFZXD9Rq7v0Bpc1o/tp0fisAAAAASUVORK5CYII=
ERROR https://aoushaoueshosuhoshuoeu.com
Lookup aoushaoueshosuhoshuoeu.com on 168.63.129.16:53: no such host
This issue is for "ChatOps" purposes.
If you are interested in how this works, see slash-command-dispatch.
Errors were reported while checking the connectivity of links.
entrypoint.sh
LICENSE
Dockerfile
OK https://github.com/peter-evans/link-checker"
README.md
OK LICENSE
OK https://github.com/marketplace/actions/link-checker
OK https://github.com/peter-evans/create-issue-from-file
OK https://github.com/peter-evans/link-checker/issues/1
OK https://github.com/raviqqe/liche
OK https://img.shields.io/badge/Marketplace-Link%20Checker-blue.svg?colorA=24292e&colorB=0366d6&style=flat&longCache=true&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAM6wAADOsB5dZE0gAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAERSURBVCiRhZG/SsMxFEZPfsVJ61jbxaF0cRQRcRJ9hlYn30IHN/+9iquDCOIsblIrOjqKgy5aKoJQj4O3EEtbPwhJbr6Te28CmdSKeqzeqr0YbfVIrTBKakvtOl5dtTkK+v4HfA9PEyBFCY9AGVgCBLaBp1jPAyfAJ/AAdIEG0dNAiyP7+K1qIfMdonZic6+WJoBJvQlvuwDqcXadUuqPA1NKAlexbRTAIMvMOCjTbMwl1LtI/6KWJ5Q6rT6Ht1MA58AX8Apcqqt5r2qhrgAXQC3CZ6i1+KMd9TRu3MvA3aH/fFPnBodb6oe6HM8+lYHrGdRXW8M9bMZtPXUji69lmf5Cmamq7quNLFZXD9Rq7v0Bpc1o/tp0fisAAAAASUVORK5CYII=
ERROR https://aoushaoueshosuhoshuoeu.com
Lookup aoushaoueshosuhoshuoeu.com on 168.63.129.16:53: no such host
@peter-evans - Is there a way that I can add a config.json file and add it to the link checker?
I want to define the required 429 retry options and give the -a
and -r
arguments as per https://github.com/tcort/markdown-link-check#markdownlinkcheckmarkdown-opts-callback.
Errors were reported while checking the connectivity of links.
entrypoint.sh
LICENSE
action.yml
Dockerfile
ERROR https://github.com/peter-evans/link-checker"
Not Found (HTTP error 404)
README.md
OK LICENSE
OK https://github.com/marketplace/actions/link-checker
OK https://github.com/peter-evans/create-issue-from-file
OK https://github.com/peter-evans/link-checker/issues/1
OK https://github.com/raviqqe/liche
OK https://img.shields.io/badge/Marketplace-Link%20Checker-blue.svg?colorA=24292e&colorB=0366d6&style=flat&longCache=true&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAM6wAADOsB5dZE0gAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAERSURBVCiRhZG/SsMxFEZPfsVJ61jbxaF0cRQRcRJ9hlYn30IHN/+9iquDCOIsblIrOjqKgy5aKoJQj4O3EEtbPwhJbr6Te28CmdSKeqzeqr0YbfVIrTBKakvtOl5dtTkK+v4HfA9PEyBFCY9AGVgCBLaBp1jPAyfAJ/AAdIEG0dNAiyP7+K1qIfMdonZic6+WJoBJvQlvuwDqcXadUuqPA1NKAlexbRTAIMvMOCjTbMwl1LtI/6KWJ5Q6rT6Ht1MA58AX8Apcqqt5r2qhrgAXQC3CZ6i1+KMd9TRu3MvA3aH/fFPnBodb6oe6HM8+lYHrGdRXW8M9bMZtPXUji69lmf5Cmamq7quNLFZXD9Rq7v0Bpc1o/tp0fisAAAAASUVORK5CYII=
ERROR https://aoushaoueshosuhoshuoeu.com
Lookup aoushaoueshosuhoshuoeu.com on 168.63.129.16:53: no such host
- name: Link Checker
id: lc
uses: peter-evans/link-checker@v1
with:
args: -r -x 'github|portal|windows' src/*
The exclusion regex 'github|portal|windows'
doesn't work.
I've tested locally using liche v0.2.0 and the exclusions do work liche -r -x 'github|portal|windows' src/*
Errors were reported while checking the connectivity of links.
action.yml
entrypoint.sh
LICENSE
Dockerfile
ERROR https://github.com/peter-evans/link-checker"
Not Found (HTTP error 404)
README.md
OK LICENSE
OK https://github.com/marketplace/actions/link-checker
OK https://github.com/peter-evans/create-issue-from-file
OK https://github.com/peter-evans/link-checker/issues/1
OK https://github.com/raviqqe/liche
OK https://img.shields.io/badge/Marketplace-Link%20Checker-blue.svg?colorA=24292e&colorB=0366d6&style=flat&longCache=true&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAM6wAADOsB5dZE0gAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAERSURBVCiRhZG/SsMxFEZPfsVJ61jbxaF0cRQRcRJ9hlYn30IHN/+9iquDCOIsblIrOjqKgy5aKoJQj4O3EEtbPwhJbr6Te28CmdSKeqzeqr0YbfVIrTBKakvtOl5dtTkK+v4HfA9PEyBFCY9AGVgCBLaBp1jPAyfAJ/AAdIEG0dNAiyP7+K1qIfMdonZic6+WJoBJvQlvuwDqcXadUuqPA1NKAlexbRTAIMvMOCjTbMwl1LtI/6KWJ5Q6rT6Ht1MA58AX8Apcqqt5r2qhrgAXQC3CZ6i1+KMd9TRu3MvA3aH/fFPnBodb6oe6HM8+lYHrGdRXW8M9bMZtPXUji69lmf5Cmamq7quNLFZXD9Rq7v0Bpc1o/tp0fisAAAAASUVORK5CYII=
ERROR https://aoushaoueshosuhoshuoeu.com
Lookup aoushaoueshosuhoshuoeu.com on 168.63.129.16:53: no such host
I have implemented the link checker and it runs and also creates an issue, but the description in the issue is empty.
Expected would be to see the error link in the description.
I get a strange warning as follows when running this as a github action:
##[warning]Unexpected input 'args', valid inputs are ['']`
Run peter-evans/link-checker@v1
Then the following under 'annotations'
Check warning on line 1 in .github
@github-actions
github-actions
/ lint
.github#L1
Unexpected input 'args', valid inputs are ['']
File is as follows:
# Simple workflow for documentation checking
name: CI
on:
push:
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Link Checker
id: lc
uses: peter-evans/link-checker@v1
with:
args: -r *
- name: Fail if there were link errors
run: exit ${{ steps.lc.outputs.exit_code }}
Any idea what might be causing this?
Errors were reported while checking the connectivity of links.
entrypoint.sh
LICENSE
Dockerfile
OK https://github.com/peter-evans/link-checker"
README.md
OK LICENSE
OK https://github.com/marketplace/actions/link-checker
OK https://github.com/peter-evans/create-issue-from-file
OK https://github.com/peter-evans/link-checker/issues/1
OK https://github.com/raviqqe/liche
OK https://img.shields.io/badge/Marketplace-Link%20Checker-blue.svg?colorA=24292e&colorB=0366d6&style=flat&longCache=true&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAM6wAADOsB5dZE0gAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAERSURBVCiRhZG/SsMxFEZPfsVJ61jbxaF0cRQRcRJ9hlYn30IHN/+9iquDCOIsblIrOjqKgy5aKoJQj4O3EEtbPwhJbr6Te28CmdSKeqzeqr0YbfVIrTBKakvtOl5dtTkK+v4HfA9PEyBFCY9AGVgCBLaBp1jPAyfAJ/AAdIEG0dNAiyP7+K1qIfMdonZic6+WJoBJvQlvuwDqcXadUuqPA1NKAlexbRTAIMvMOCjTbMwl1LtI/6KWJ5Q6rT6Ht1MA58AX8Apcqqt5r2qhrgAXQC3CZ6i1+KMd9TRu3MvA3aH/fFPnBodb6oe6HM8+lYHrGdRXW8M9bMZtPXUji69lmf5Cmamq7quNLFZXD9Rq7v0Bpc1o/tp0fisAAAAASUVORK5CYII=
ERROR https://aoushaoueshosuhoshuoeu.com
Lookup aoushaoueshosuhoshuoeu.com on 127.0.0.11:53: no such host
Does the Github Action support ASCIIDoc?
Errors were reported while checking the connectivity of links.
LICENSE
entrypoint.sh
Dockerfile
OK https://github.com/peter-evans/link-checker"
README.md
OK LICENSE
OK https://github.com/marketplace/actions/link-checker
OK https://github.com/peter-evans/create-issue-from-file
OK https://github.com/peter-evans/link-checker/issues/1
OK https://github.com/raviqqe/liche
OK https://img.shields.io/badge/Marketplace-Link%20Checker-blue.svg?colorA=24292e&colorB=0366d6&style=flat&longCache=true&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAM6wAADOsB5dZE0gAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAERSURBVCiRhZG/SsMxFEZPfsVJ61jbxaF0cRQRcRJ9hlYn30IHN/+9iquDCOIsblIrOjqKgy5aKoJQj4O3EEtbPwhJbr6Te28CmdSKeqzeqr0YbfVIrTBKakvtOl5dtTkK+v4HfA9PEyBFCY9AGVgCBLaBp1jPAyfAJ/AAdIEG0dNAiyP7+K1qIfMdonZic6+WJoBJvQlvuwDqcXadUuqPA1NKAlexbRTAIMvMOCjTbMwl1LtI/6KWJ5Q6rT6Ht1MA58AX8Apcqqt5r2qhrgAXQC3CZ6i1+KMd9TRu3MvA3aH/fFPnBodb6oe6HM8+lYHrGdRXW8M9bMZtPXUji69lmf5Cmamq7quNLFZXD9Rq7v0Bpc1o/tp0fisAAAAASUVORK5CYII=
ERROR https://aoushaoueshosuhoshuoeu.com
Lookup aoushaoueshosuhoshuoeu.com on 168.63.129.16:53: no such host
Would it be possible for this to annotate PRs when broken links are found? Thanks!
Hi, and thanks for building this GitHub Action for link checking!
I configured the Action exactly as documented here:
https://github.com/marketplace/actions/link-checker#creating-a-failing-check-for-link-errors
on: push
jobs:
linkChecker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Link Checker
id: lc
uses: peter-evans/link-checker@v1
with:
args: -v -r *
- name: Fail if there were link errors
run: exit ${{ steps.lc.outputs.exit_code }}
When this Action is run, I get the following error message:
Check failure on line 17 in .github/workflows/main.yml
GitHub Actions
/ .github/workflows/main.ymlParse error
You have an error in your yaml syntax on line 17
Line 17 is the last one in the example above i.e.
run: exit ${{ steps.lc.outputs.exit_code }}
Any idea what might be wrong here?
Errors were reported while checking the connectivity of links.
LICENSE
entrypoint.sh
action.yml
Dockerfile
ERROR https://github.com/peter-evans/link-checker"
Not Found (HTTP error 404)
README.md
OK LICENSE
OK https://github.com/marketplace/actions/link-checker
OK https://github.com/peter-evans/create-issue-from-file
OK https://github.com/peter-evans/link-checker/issues/1
OK https://github.com/raviqqe/liche
OK https://img.shields.io/badge/Marketplace-Link%20Checker-blue.svg?colorA=24292e&colorB=0366d6&style=flat&longCache=true&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAM6wAADOsB5dZE0gAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAERSURBVCiRhZG/SsMxFEZPfsVJ61jbxaF0cRQRcRJ9hlYn30IHN/+9iquDCOIsblIrOjqKgy5aKoJQj4O3EEtbPwhJbr6Te28CmdSKeqzeqr0YbfVIrTBKakvtOl5dtTkK+v4HfA9PEyBFCY9AGVgCBLaBp1jPAyfAJ/AAdIEG0dNAiyP7+K1qIfMdonZic6+WJoBJvQlvuwDqcXadUuqPA1NKAlexbRTAIMvMOCjTbMwl1LtI/6KWJ5Q6rT6Ht1MA58AX8Apcqqt5r2qhrgAXQC3CZ6i1+KMd9TRu3MvA3aH/fFPnBodb6oe6HM8+lYHrGdRXW8M9bMZtPXUji69lmf5Cmamq7quNLFZXD9Rq7v0Bpc1o/tp0fisAAAAASUVORK5CYII=
ERROR https://aoushaoueshosuhoshuoeu.com
Lookup aoushaoueshosuhoshuoeu.com on 168.63.129.16:53: no such host
Errors were reported while checking the connectivity of links.
LICENSE
entrypoint.sh
action.yml
Dockerfile
ERROR https://github.com/peter-evans/link-checker"
Not Found (HTTP error 404)
README.md
OK LICENSE
OK https://github.com/marketplace/actions/link-checker
OK https://github.com/peter-evans/create-issue-from-file
OK https://github.com/peter-evans/link-checker/issues/1
OK https://github.com/raviqqe/liche
OK https://img.shields.io/badge/Marketplace-Link%20Checker-blue.svg?colorA=24292e&colorB=0366d6&style=flat&longCache=true&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAM6wAADOsB5dZE0gAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAERSURBVCiRhZG/SsMxFEZPfsVJ61jbxaF0cRQRcRJ9hlYn30IHN/+9iquDCOIsblIrOjqKgy5aKoJQj4O3EEtbPwhJbr6Te28CmdSKeqzeqr0YbfVIrTBKakvtOl5dtTkK+v4HfA9PEyBFCY9AGVgCBLaBp1jPAyfAJ/AAdIEG0dNAiyP7+K1qIfMdonZic6+WJoBJvQlvuwDqcXadUuqPA1NKAlexbRTAIMvMOCjTbMwl1LtI/6KWJ5Q6rT6Ht1MA58AX8Apcqqt5r2qhrgAXQC3CZ6i1+KMd9TRu3MvA3aH/fFPnBodb6oe6HM8+lYHrGdRXW8M9bMZtPXUji69lmf5Cmamq7quNLFZXD9Rq7v0Bpc1o/tp0fisAAAAASUVORK5CYII=
ERROR https://aoushaoueshosuhoshuoeu.com
Lookup aoushaoueshosuhoshuoeu.com on 168.63.129.16:53: no such host
Thanks for this GitHub action. I would like to comment to the pr where the link checker was run with the report attached to the comment. I saw your other action https://github.com/peter-evans/commit-comment but I don't see any way to attach a file to the comment.
Is this possible? If not, can this be supported?
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.