mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-17 11:14:12 +01:00
ci(lint-checker): lock down permissions
Lock down the GITHUB_TOKEN permissions. lychee only needs `GITHUB_TOKEN` to read public data without hitting rate-limits, so having read-only access to contents should be fine.
This commit is contained in:
3
.github/workflows/link-checker.yml
vendored
3
.github/workflows/link-checker.yml
vendored
@@ -20,6 +20,9 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
linkChecker:
|
linkChecker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
# lychee only uses the GITHUB_TOKEN to avoid rate-limiting
|
||||||
|
contents: read
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user