| 1 |
# Copyright 2023 The Archivista Contributors |
| 2 |
# |
| 3 |
# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
# you may not use this file except in compliance with the License. |
| 5 |
# You may obtain a copy of the License at |
| 6 |
# |
| 7 |
# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
# |
| 9 |
# Unless required by applicable law or agreed to in writing, software |
| 10 |
# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
# See the License for the specific language governing permissions and |
| 13 |
# limitations under the License. |
| 14 |
|
| 15 |
# Dependency Review Action |
| 16 |
# |
| 17 |
# This Action will scan dependency manifest files that change as part of a Pull Request, |
| 18 |
# surfacing known-vulnerable versions of the packages declared or updated in the PR. |
| 19 |
# Once installed, if the workflow run is marked as required, |
| 20 |
# PRs introducing known-vulnerable packages will be blocked from merging. |
| 21 |
# |
| 22 |
# Source repository: https://github.com/actions/dependency-review-action |
| 23 |
name: 'Dependency Review' |
| 24 |
on: [pull_request] |
| 25 |
|
| 26 |
permissions: |
| 27 |
contents: read |
| 28 |
|
| 29 |
jobs: |
| 30 |
dependency-review: |
| 31 |
runs-on: ubuntu-latest |
| 32 |
steps: |
| 33 |
- name: Harden Runner |
| 34 |
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1 |
| 35 |
with: |
| 36 |
egress-policy: audit |
| 37 |
|
| 38 |
- name: 'Checkout Repository' |
| 39 |
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
| 40 |
- name: 'Dependency Review' |
| 41 |
uses: actions/dependency-review-action@40c09b7dc99638e5ddb0bfd91c1673effc064d8a # v4.8.1 |