forked from canonical/ubuntu.com
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (27 loc) · 999 Bytes
/
security-links.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Security Links
on:
schedule:
- cron: "20 7 * * *"
jobs:
check-links:
if: github.repository == 'canonical/ubuntu.com'
runs-on: ubuntu-latest
steps:
- name: Install linkchecker
run: sudo pip install LinkChecker
- name: Run linkchecker
run: |
linkchecker --recursion-level=2 \
--check-extern --no-warnings https://ubuntu.com/security \
--timeout 1000 \
--no-follow-url '!https:\/\/ubuntu.com\/security' \
--ignore-url https://res.cloudinary.com \
--ignore-url q_auto \
--ignore-url fl_sanitize \
--ignore-url c_fill \
--ignore-url e_sharpen \
--ignore-url w_[0-9]* \
--ignore-url h_[0-9]*
- name: Send message on failure
if: failure()
run: curl -X POST -F "workflow=${GITHUB_WORKFLOW}" -F "repo_name=${GITHUB_REPOSITORY}" -F "action_id=${GITHUB_RUN_ID}" ${{ secrets.BOT_URL }}?room=cve--usn