Skip to content

Commit

Permalink
URL auditor with URL fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ScriptAutomate authored and dwoz committed Dec 18, 2023
1 parent aba5f62 commit d07172c
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .brokignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
http://127.0.0.1
http://example.com
http://example.org
http://github.com
http://localhost
http://www.example.com
http://www.example.org
https://127.0.0.1
https://example.com
https://example.org
https://github.com
https://localhost
https://twitter.com/intent/follow?screen_name=Salt_Project_OS
https://www.example.com
https://www.example.org
38 changes: 38 additions & 0 deletions .github/workflows/url-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: URL validator

on: [push, pull_request]

jobs:
Pre-Commit:
name: Run brok Against Salt

runs-on: ubuntu-latest

container:
image: debian:buster-slim

steps:

- name: Install System Deps
run: |
apt-get update
apt-get install -y wget libtinfo5
- uses: actions/checkout@v2

- name: Get Date
id: get-date
run: |
echo "::set-output name=date::$(/bin/date -u "+%Y%m")"
shell: bash
- uses: actions/cache@v2
with:
path: .brokdb
key: ${{ hashFiles('.github/workflows/url-check.yml') }}-${{ hashFiles('.brokignore') }}-${{ steps.get-date.outputs.date }}

- name: Install brok
run: |
wget https://github.com/smallhadroncollider/brok/releases/download/1.1.0/brok-1.1.0_x86-64-linux.deb
dpkg -i brok-1.1.0_x86-64-linux.deb
- name: Run brok
run: |
brok --ignore $(cat .brokignore) $(find . -type f -name "*.rst") $(find . -type f -name "*.md") > /dev/null
4 changes: 2 additions & 2 deletions doc/ref/file_server/backends.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ served from the ``first`` repository.
.. code-block:: yaml
gitfs_remotes:
- https://mydomain.tld/repos/first.git
- https://mydomain.tld/repos/second.git
- https://example.com/repos/first.git
- https://example.com/repos/second.git
.. note::

Expand Down

0 comments on commit d07172c

Please sign in to comment.