|
| 1 | +### |
| 2 | +# @format |
| 3 | +# ----- |
| 4 | +# Project: zenstack-monorepo |
| 5 | +# File: security-dependency-review.yml |
| 6 | +# Path: \.github\workflows\security-dependency-review.yml |
| 7 | +# Created Date: Monday, February 19th 2024 |
| 8 | +# Author: Jonathan Stevens, jonathan@resnovas.com |
| 9 | +# Github: https://github.com/TGTGamer |
| 10 | +# ----- |
| 11 | +# Contributing: Please read through our contributing guidelines. |
| 12 | +# Included are directions for opening issues, coding standards, |
| 13 | +# and notes on development. These can be found at |
| 14 | +# https://github.com/zenstack-monorepo/blob/develop/CONTRIBUTING.md |
| 15 | +# ----- |
| 16 | +# Code of Conduct: This project abides by the Contributor Covenant, v2.0 |
| 17 | +# Please interact in ways that contribute to an open, welcoming, diverse, |
| 18 | +# inclusive, and healthy community. Our Code of Conduct can be found at |
| 19 | +# https://github.com/zenstack-monorepo/blob/develop/CODE_OF_CONDUCT.md |
| 20 | +# ----- |
| 21 | +# Copyright (c) 2024 ZenstackHQ - All Rights Reserved |
| 22 | +# LICENSE: MIT License (MIT) |
| 23 | +# ----- |
| 24 | +# This program has been provided under confidence of the copyright holder and |
| 25 | +# is licensed for copying, distribution and modification under the terms |
| 26 | +# of the MIT License (MIT) published as the License, |
| 27 | +# or (at your option) any later version of this license. |
| 28 | +# This program is distributed in the hope that it will be useful, |
| 29 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 30 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 31 | +# MIT License for more details. |
| 32 | +# You should have received a copy of the MIT License |
| 33 | +# along with this program. If not, please write to: jonathan@resnovas.com, |
| 34 | +# or see https://opensource.org/licenses/MIT |
| 35 | +# ----- |
| 36 | +# DELETING THIS NOTICE AUTOMATICALLY VOIDS YOUR LICENSE |
| 37 | +### |
| 38 | + |
| 39 | +# Dependency Review Action |
| 40 | +# |
| 41 | +# This Action will scan dependency manifest files that change as part of a Pull Request, |
| 42 | +# surfacing known-vulnerable versions of the packages declared or updated in the PR. |
| 43 | +# Once installed, if the workflow run is marked as required, |
| 44 | +# PRs introducing known-vulnerable packages will be blocked from merging. |
| 45 | +# |
| 46 | +# Source repository: https://github.com/actions/dependency-review-action |
| 47 | +name: Security - Dependency Review |
| 48 | +on: |
| 49 | + merge_group: |
| 50 | + pull_request: |
| 51 | + |
| 52 | +permissions: |
| 53 | + contents: read |
| 54 | + |
| 55 | +jobs: |
| 56 | + dependency-review: |
| 57 | + runs-on: ubuntu-latest |
| 58 | + steps: |
| 59 | + - name: Harden Runner |
| 60 | + uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1 |
| 61 | + with: |
| 62 | + egress-policy: audit |
| 63 | + |
| 64 | + # checks out the repository |
| 65 | + - uses: actions/checkout@v4 |
| 66 | + with: |
| 67 | + submodules: 'recursive' |
| 68 | + token: ${{ secrets.BOT_TOKEN || github.token }} # Bot Token is a PAT for a automation account. |
| 69 | + |
| 70 | + - name: 'Dependency Review' |
| 71 | + uses: actions/dependency-review-action@0efb1d1d84fc9633afcdaad14c485cbbc90ef46c # v2.5.1 |
0 commit comments