Skip to content

env-loader: Added gha-env writer #521

env-loader: Added gha-env writer

env-loader: Added gha-env writer #521

# Dependency Review Action
#
# This Action will scan dependency manifest files that change as part of a Pull
# Request, surfacing known-vulnerable versions of the packages declared or
# updated in the PR. Once installed, if the workflow run is marked as required,
# PRs introducing known-vulnerable packages will be blocked from merging.
#
# Source repository: https://github.com/actions/dependency-review-action
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
name: 'Dependency Review'
on:
pull_request:
branches:
- main
workflow_call:
inputs:
fail-on-severity:
description: "Minimum severity for failing PRs. Passed through to dependency-review-action"
default: "low"
required: false
type: string
allow-ghsas:
description: "Allowed GHSAs. Passed through to dependency-review-action"
default: ""
required: false
type: string
allow-dependencies-licenses:
description: "Allowed dependency licenses. Passed through to dependency-review-action"
default: ""
required: false
type: string
base-ref:
description: "Base ref. Passed through to dependency-review-action"
default: ""
required: false
type: string
head-ref:
description: "Head ref. Passed through to dependency-review-action"
default: ""
required: false
type: string
jobs:
dependency-review:
name: 'Dependency Review'
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: 'Dependency Review'
uses: actions/dependency-review-action@5bbc3ba658137598168acb2ab73b21c432dd411b # v4.2.5
with:
fail-on-severity: ${{ inputs.fail-on-severity }}
allow-licenses: 0BSD, Apache-2.0, BlueOak-1.0.0, BSD-2-Clause, BSD-2-Clause-FreeBSD, BSD-3-Clause, BSD-2-Clause AND BSD-3-Clause, BSD-3-Clause AND BSD-3-Clause-Clear, CC-BY-3.0, CC-BY-4.0, CC0-1.0, ISC, LGPL-2.1, MIT, MIT-0, MPL-2.0, ODC-By-1.0, OFL-1.1, Python-2.0, Unicode-DFS-2016, Unlicense, WTFPL, Zlib, (MIT OR Apache-2.0) AND Unicode-DFS-2016, Apache-2.0 AND BSD-3-Clause, ISC AND MIT, MIT AND Zlib, MIT AND BSD-3-Clause, MIT AND WTFPL, ISC AND (Apache-2.0 OR ISC) AND OpenSSL
allow-ghsas: ${{ inputs.allow-ghsas }}
allow-dependencies-licenses: ${{ inputs.allow-dependencies-licenses != '' && format('pkg:golang/github.com/gravitational/teleport, pkg:golang/github.com/gravitational/teleport/api, {0}', inputs.allow-dependencies-licenses) || 'pkg:golang/github.com/gravitational/teleport, pkg:golang/github.com/gravitational/teleport/api'}}
comment-summary-in-pr: on-failure
base-ref: ${{ inputs.base-ref || github.event.pull_request.base.sha || github.event.repository.default_branch }}
head-ref: ${{ inputs.head-ref || github.event.pull_request.head.sha || github.ref }}