You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2026-06-03 18:35:08 +02:00
25ee2bdabc
https://github.com/ossf/scorecard/blob/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#token-permissions
53 lines
1.4 KiB
YAML
53 lines
1.4 KiB
YAML
name: Links
|
|
|
|
on:
|
|
repository_dispatch:
|
|
workflow_dispatch:
|
|
schedule:
|
|
# Everyday at 9:00 AM.
|
|
- cron: "0 9 * * *"
|
|
|
|
# Declare default permissions as read only.
|
|
permissions: read-all
|
|
|
|
jobs:
|
|
check-links:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
|
|
|
|
- name: Restore lychee cache
|
|
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
|
|
id: cache-restore
|
|
with:
|
|
path: .lycheecache
|
|
key: cache-lychee-${{ github.sha }}
|
|
restore-keys: cache-lychee-
|
|
|
|
- name: Link Checker
|
|
id: lychee
|
|
uses: lycheeverse/lychee-action@f613c4a64e50d792e0b31ec34bbcbba12263c6a6 # v2.3.0
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
args: --max-concurrency 1 --cache --max-cache-age 1d --cache-exclude-status 300..=599 .
|
|
|
|
- name: Save lychee cache
|
|
if: always()
|
|
uses: actions/cache/save@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
|
|
with:
|
|
path: .lycheecache
|
|
key: ${{ steps.cache-restore.outputs.cache-primary-key }}
|
|
|
|
- name: Create Issue From File
|
|
if: steps.lychee.outputs.exit_code != 0
|
|
uses: peter-evans/create-issue-from-file@e8ef132d6df98ed982188e460ebb3b5d4ef3a9cd # v5
|
|
with:
|
|
title: Link Checker Report
|
|
content-filepath: ./lychee/out.md
|
|
labels: report, bot-generated
|