Skip to content

Commit

Permalink
fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
brvtalcake committed Nov 4, 2024
1 parent 6d4393c commit 9703651
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ on:
- synchronize
- reopened
- ready_for_review
push:
branches:
- "main"
- "**/dev/**"
- "release/**"

permissions:
contents: read
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/dependabot_onpush.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

name: 'Dependency review'
on:
push:
branches:
- "main"
- "**/dev/**"
- "release/**"

permissions:
contents: read
# Write permissions for pull-requests are required for using the `comment-summary-in-pr` option, comment out if you aren't using this option
# pull-requests: write

env:
HEAD_REF: ${{ github.event.ref }}
BASE_REF: ${{ (github.event.base_ref != null) && github.event.base_ref || github.event.ref }}

jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: 'Checkout repository'
uses: actions/checkout@v4
- name: 'Dependency Review'
uses: actions/dependency-review-action@v4
with:
comment-summary-in-pr: always
fail-on-severity: low
deny-licenses: GPL-1.0-or-later, LGPL-2.0-or-later
base-ref: ${{ env.BASE_REF }}
head-ref: ${{ env.HEAD_REF }}
8 changes: 8 additions & 0 deletions .github/workflows/manual_dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ permissions:
# Write permissions for pull-requests are required for using the `comment-summary-in-pr` option, comment out if you aren't using this option
# pull-requests: write

env:
HEAD_REF: ${{ github.event.ref }}
BASE_REF: ${{ (github.event.base_ref != null) && github.event.base_ref || github.event.ref }}

jobs:
dependency-review_with_allow_licenses:
runs-on: ubuntu-latest
Expand All @@ -65,6 +69,8 @@ jobs:
allow-licenses: ${{ inputs['license-selection'] }}
warn-only: ${{ inputs['warn-only'] }}
fail-on-scopes: ${{ inputs['scopes'] }}
base-ref: ${{ env.BASE_REF }}
head-ref: ${{ env.HEAD_REF }}
dependency-review_with_deny_licenses:
runs-on: ubuntu-latest
if: ${{ inputs['license-action'] == 'deny' }}
Expand All @@ -78,3 +84,5 @@ jobs:
deny-licenses: ${{ inputs['license-selection'] }}
warn-only: ${{ inputs['warn-only'] }}
fail-on-scopes: ${{ inputs['scopes'] }}
base-ref: ${{ env.BASE_REF }}
head-ref: ${{ env.HEAD_REF }}

0 comments on commit 9703651

Please sign in to comment.