You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+33-15
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ Linkspector is a powerful tool for anyone who creates content using markup langu
21
21
1.**Enhanced Link Checking with Puppeteer**: It uses [Puppeteer](https://pptr.dev/) to check links in Chrome's headless mode, reducing the number of false positives.
22
22
2.**Addresses limitations and adds user-requested features**: It is built to adress the shortcomings in [GitHub Action - Markdown link check](https://github.com/gaurav-nelson/github-action-markdown-link-check) and adds many user requested features.
23
23
3.**Single repository for seamless collaboration**: All the code it needs to run is in a single repository, making it easier for community to collaborate.
24
-
4.**Focused for CI/CD use**: Linkspector is purposefully tailored to run into your CI/CD pipelines. This ensures that link checking becomes an integral part of your development workflow.
24
+
4.**Focused for CI/CD use**: Linkspector ([action-linkspector](https://github.com/UmbrellaDocs/action-linkspector)) is purposefully tailored to run into your CI/CD pipelines. This ensures that link checking becomes an integral part of your development workflow.
25
25
26
26
## Installation
27
27
@@ -112,6 +112,7 @@ Following are the available configuration options:
112
112
| [`aliveStatusCodes`](#alive-status-codes) | The list of HTTP status codes that are considered as "alive" links. | No |
113
113
| [`useGitIgnore`](#use-gitignore) | Indicates whether to use the rules defined in the `.gitignore` file to exclude files and directories. | No |
114
114
| [`modifiedFilesOnly`](#check-modified-files-only) | Indicates whether to check only the files that have been modified in the last git commit. | No |
115
+
| [`httpHeaders`](#http-headers) | The list of URLs and their corresponding HTTP headers to be used during link checking. | No |
115
116
116
117
### Files to Check
117
118
@@ -225,6 +226,31 @@ When enabled, Linkspector will use `git` to find the list of modified files and
225
226
226
227
Also, if no modified files are found in the list of files to check, Linkspector will skip link checking and exit with a message indicating that no modified files have been edited so it will skip checking.
227
228
229
+
### HTTP headers
230
+
231
+
The `httpHeaders` option allows you to specify HTTP headers for specific URLs that require authorization. You can use environment variables for secure values.
232
+
233
+
1. Create a `.env` file in the root directory of your project and add the environment variables. For example:
234
+
235
+
```env
236
+
AUTH_TOKEN=abcdef123456
237
+
```
238
+
239
+
1. Add the `httpHeaders` section to the configuration file and specify the URLs and headers. For example:
0 commit comments