Bump actions/dependency-review-action from 67d4f4bd7a9b17a0db54d2a7519187c65e339de8 to 8805179dc9a63c54224914839d370dd93bd37b2e #305
Workflow file for this run
This file contains hidden or 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: Multi Job Example | |
permissions: | |
contents: read | |
on: | |
push: | |
branches: | |
- "**" | |
pull_request: | |
branches: | |
- "**" | |
jobs: | |
changed-files: | |
name: Get changed files | |
runs-on: ubuntu-latest | |
outputs: | |
all_changed_files: ${{ steps.changed-files.outputs.all_changed_files }} | |
steps: | |
- name: Harden the runner (Audit all outbound calls) | |
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0 | |
with: | |
egress-policy: audit | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
- name: Get changed files | |
id: changed-files | |
uses: ./ | |
- name: List all changed files | |
run: echo '${{ steps.changed-files.outputs.all_changed_files }}' | |
view-changed-files: | |
name: View all changed files | |
runs-on: ubuntu-latest | |
needs: [changed-files] | |
steps: | |
- name: Harden the runner (Audit all outbound calls) | |
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0 | |
with: | |
egress-policy: audit | |
- name: List all changed files | |
run: | | |
echo '${{ needs.changed-files.outputs.all_changed_files }}' | |
changed-files-rest-api: | |
name: Get changed files using REST API | |
runs-on: ubuntu-latest | |
outputs: | |
all_changed_files: ${{ steps.changed-files.outputs.all_changed_files }} | |
steps: | |
- name: Harden the runner (Audit all outbound calls) | |
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0 | |
with: | |
egress-policy: audit | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
- name: Get changed files | |
id: changed-files | |
continue-on-error: ${{ github.event_name == 'push' }} | |
uses: ./ | |
with: | |
use_rest_api: true | |
- name: List all changed files | |
run: echo '${{ steps.changed-files.outputs.all_changed_files }}' | |
view-changed-files-rest-api: | |
name: View all changed files using REST API | |
runs-on: ubuntu-latest | |
needs: [changed-files-rest-api] | |
steps: | |
- name: Harden the runner (Audit all outbound calls) | |
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0 | |
with: | |
egress-policy: audit | |
- name: List all changed files | |
run: | | |
echo '${{ needs.changed-files-rest-api.outputs.all_changed_files }}' |