fix(deps): update step-security/harden-runner action to v2.9.0 #124
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dependency Scanning | |
on: | |
pull_request: | |
types: [opened, synchronize, edited] | |
branches: | |
- main | |
workflow_call: | |
inputs: | |
severity: | |
description: Severity to fail on from low, moderate, high, or critical | |
required: false | |
type: string | |
default: low | |
comment: | |
description: Comment on PR, from never, always, or on-failure | |
required: false | |
type: string | |
default: on-failure | |
harden_runner: | |
description: "Harden the runner" | |
required: false | |
default: true | |
type: boolean | |
permissions: {} | |
concurrency: | |
group: dependency-review-${{ github.repository }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
dependency-review: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: write | |
steps: | |
- name: Harden the runner | |
uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # v2.9.0 | |
if: ${{ inputs.harden_runner != false }} | |
with: | |
disable-sudo: true | |
egress-policy: block | |
allowed-endpoints: > | |
api.deps.dev:443 | |
api.github.com:443 | |
api.securityscorecards.dev:443 | |
github.com:443 | |
- name: Checkout Repository | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Dependency Review | |
uses: actions/dependency-review-action@5a2ce3f5b92ee19cbb1541a4984c76d921601d7c # v4.3.4 | |
with: | |
fail-on-severity: ${{ inputs.severity || 'low' }} | |
comment-summary-in-pr: ${{ inputs.comment || 'always' }} |