Skip to content

chore(deps): update softprops/action-gh-release digest to 0a7d9cd #967

chore(deps): update softprops/action-gh-release digest to 0a7d9cd

chore(deps): update softprops/action-gh-release digest to 0a7d9cd #967

# Copyright 2020 Wayback Archiver. All rights reserved.
# Use of this source code is governed by the MIT license
# that can be found in the LICENSE file.
name: URLCheck
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
types: [ opened, synchronize, reopened ]
workflow_call:
inputs:
exclude-patterns:
type: string
default: ".onion,https://github.com/,https://repo.wabarc.eu.org/"
description: "A comma separated patterns to exclude during URL checks."
timeout:
type: number
default: 30
description: "The timeout seconds for requests."
egress-policy:
type: string
default: 'audit'
description: 'Harden-Runner egress traffic policy'
permissions:
contents: read
jobs:
urlcheck:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
with:
disable-sudo: true
egress-policy: ${{ inputs.egress-policy || 'audit' }}
disable-telemetry: true
allowed-endpoints: >
github.com:443
- name: Check out code base
if: github.event_name == 'push'
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
fetch-depth: 0
persist-credentials: false
- name: Check out code base
if: github.event_name == 'pull_request'
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
fetch-depth: 0
persist-credentials: false
ref: ${{ github.event.pull_request.head.sha }}
- name: Run url checker
uses: urlstechie/urlchecker-action@b643b43e2ac605e1475331c7b67247d242b7dce4 # 0.0.34
with:
exclude_patterns: ${{ inputs.exclude-patterns }}
timeout: ${{ inputs.timeout }}