Bump org.springframework.boot:spring-boot-starter-parent from 2.7.17 to 3.2.1 in /todo #39
Workflow file for this run
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
name: 50-Dependency-Review | |
on: | |
# dependency scan works comparing pull requests to the base branch | |
pull_request_target: | |
#pull_request: | |
# These types are all required for CRDA to scan pull requests correctly and securely. | |
types: [ opened, synchronize, reopened, labeled, edited ] | |
paths-ignore: | |
- '**/*.md' | |
- '**/*.txt' | |
permissions: | |
contents: write | |
jobs: | |
dependency-review: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write # for actions/checkout to fetch code | |
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | |
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status | |
steps: | |
- name: Get User Permission | |
id: checkAccess | |
uses: actions-cool/check-user-permission@v2 | |
with: | |
require: write | |
username: ${{ github.triggering_actor }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Show the two contexts | |
run: | | |
echo "ctxt: ${{ github.sha }} pr: ${{ github.event.pull_request.head.sha }}" | |
echo "ref: /ref/pull/${{ github.event.pull_request.number }}" | |
- name: Check User Permission | |
if: steps.checkAccess.outputs.require-result == 'false' | |
run: | | |
echo "${{ github.triggering_actor }} does not have permissions on this repo." | |
echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}" | |
echo "Job originally triggered by ${{ github.actor }}" | |
exit 1 | |
- name: 'Checkout Repository' | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} # This is dangerous without the first access check | |
- run: echo "${{ github.event_name }}" | |
# Use the dependency snapshot to detect transient dependencies | |
# https://github.com/actions/dependency-review-action/issues/595#event-10791333872 | |
- name: Submit Dependency Snapshot | |
#uses: advanced-security/maven-dependency-submission-action@v3 | |
uses: jmservera/maven-dependency-submission-action@extend-with-sha | |
with: | |
directory: ${{ github.workspace }}/todo | |
sha: ${{ github.event.pull_request.head.sha }} | |
ref: "refs/pull/${{ github.event.pull_request.number }}/merge" | |
- name: 'Dependency Review from PR' | |
uses: actions/dependency-review-action@v3 | |