mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-07-15 06:37:40 +00:00
The default suggestion for top-level permissions was `contents: read`, but scorecard notes anything other than empty, so try updating it and see if there are any issues. I think it's only needed if we run workflows from other repos. Signed-off-by: stevenhorsman <steven@uk.ibm.com>
34 lines
877 B
YAML
34 lines
877 B
YAML
on:
|
|
schedule:
|
|
- cron: '0 23 * * 0'
|
|
|
|
permissions: {}
|
|
|
|
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: Set env
|
|
run: |
|
|
echo "GOPATH=${{ github.workspace }}" >> "$GITHUB_ENV"
|
|
- name: Checkout code
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
with:
|
|
fetch-depth: 0
|
|
persist-credentials: false
|
|
path: ./src/github.com/${{ github.repository }}
|
|
|
|
- name: Install golang
|
|
run: |
|
|
./tests/install_go.sh -f -p
|
|
echo "/usr/local/go/bin" >> "${GITHUB_PATH}"
|
|
|
|
- name: Docs URL Alive Check
|
|
run: |
|
|
cd "${GOPATH}/src/github.com/${{ github.repository }}" && make docs-url-alive-check
|