-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TB-52 Legg til action for dependency review av Pull Requests
* Submitter alle dependencies via Submission APIet * Dette skal også gjøre at vi får innsikt i dependency graph og varsling om eventuelle sårbarheter * Kjører dependency review pluginen som skal hente depedencies via submission APIet * Tillater følgende lisenser: MIT og Apache 2.0 * Sjekker også etter sårbarheter i tillegg til lisenser i 3. parts libs
- Loading branch information
Showing
5 changed files
with
57 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Setup java | ||
description: Setup Java with correct version | ||
|
||
runs: | ||
using: composite | ||
|
||
steps: | ||
- name: Setup Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '21' |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Dependency Review for PR | ||
on: | ||
pull_request: | ||
branches: [ main ] | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
dependency-review: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout project sources | ||
uses: actions/checkout@v4 | ||
- name: Setup Java | ||
uses: ./.github/actions/setup-java | ||
- name: Dependency submission | ||
uses: gradle/actions/dependency-submission@v4 | ||
- name: Dependency review | ||
uses: actions/dependency-review-action@v4 | ||
with: | ||
comment-summary-in-pr: true | ||
allow-licenses: MIT, Apache-2.0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Dependency Submission | ||
on: | ||
push: | ||
branches: [ main ] | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
dependency-submission: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout project sources | ||
uses: actions/checkout@v4 | ||
- name: Setup Java | ||
uses: ./.github/actions/setup-java | ||
- name: Generate and submit dependency graph | ||
uses: gradle/actions/dependency-submission@v4 |