Skip to content

Commit

Permalink
Change workflow to checkout config as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
billnapier committed Feb 14, 2025
1 parent 5ff477f commit 970d0ae
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/action_scanning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,19 @@ jobs:
if: (github.actor != 'dependabot[bot]')

steps:
- name: Checkout Code
- name: Checkout Workflow Config
uses: actions/checkout@v4

with:
repository: ${github.action_repository}
path: action_scanning

- name: Checkout Code
uses: actions/checkout@v4
with:
path: code_to_scan

- name: Run Actions semgrep scan
run: semgrep scan --sarif --config semgrep-rules/actions >> semgrep-results-actions.sarif
run: semgrep scan --sarif --config action_scanning/semgrep-rules/actions code_to_scan >> semgrep-results-actions.sarif

- name: Save Actions SARIF results as artifact
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 970d0ae

Please sign in to comment.