mirror of
https://github.com/fleetdm/fleet
synced 2026-05-10 10:40:46 +00:00
* Added explicit read permissions + tweaked permissions As a part of #4698 - this should fix the remaining warnings we get from the OSSF scorecard in relation to github workflows. They now all have explicit read permissions with more granular permissions granted in jobs. * Update tfsec.yml New workflow that I had not fixed in this PR.
26 lines
783 B
YAML
26 lines
783 B
YAML
name: Check for bad links in documentation
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
# Only run on changes to .md files -- this check is too flakey to run on every PR
|
|
- '**.md'
|
|
workflow_dispatch: # Manual
|
|
schedule:
|
|
- cron: '0 6 * * *' # Nightly 6AM UTC
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
markdown-link-check:
|
|
permissions:
|
|
contents: read # to read files to check dead links
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@61b9e3751b92087fd0b06925ba6dd6314e06f089 # master
|
|
- uses: gaurav-nelson/github-action-markdown-link-check@9710f0fec812ce0a3b98bef4c9d842fc1f39d976 # v1.0.13
|
|
with:
|
|
use-quiet-mode: 'yes'
|
|
config-file: .github/workflows/markdown-link-check-config.json
|
|
base-branch: ${{ github.base_ref }}
|