mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-07-15 15:14:06 +00:00
Set: ``` permissions: contents: read ``` as the default top-level permissions explicitly to conform to recommended security practices e.g. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions
36 lines
927 B
YAML
36 lines
927 B
YAML
on:
|
|
schedule:
|
|
- cron: '0 23 * * 0'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
name: Docs URL Alive Check
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-22.04
|
|
# don't run this action on forks
|
|
if: github.repository_owner == 'kata-containers'
|
|
env:
|
|
target_branch: ${{ github.base_ref }}
|
|
steps:
|
|
- name: Install Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: 1.23.7
|
|
env:
|
|
GOPATH: ${{ github.workspace }}/kata-containers
|
|
- name: Set env
|
|
run: |
|
|
echo "GOPATH=${{ github.workspace }}" >> "$GITHUB_ENV"
|
|
echo "${{ github.workspace }}/bin" >> "$GITHUB_PATH"
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
path: ./src/github.com/${{ github.repository }}
|
|
# docs url alive check
|
|
- name: Docs URL Alive Check
|
|
run: |
|
|
cd "${GOPATH}/src/github.com/${{ github.repository }}" && make docs-url-alive-check
|