Skip to content

Commit 30a1cd9

Browse files
committed
Use the action
1 parent 0de1a89 commit 30a1cd9

2 files changed

Lines changed: 4 additions & 11 deletions

File tree

.github/actions/dfetch-action.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@
1515
# - name: Run Dfetch SARIF Check
1616
# uses: dfetch-org/dfetch/.github/actions/dfetch-action@main
1717
# with:
18-
# dfetch-install: '.'
1918
# working-directory: '.' # optional, defaults to project root
2019
# ```
2120
#
2221
# ## Inputs
23-
# - `dfetch-install`: pip install argument for dfetch (default: . for local)
2422
# - `working-directory`: Directory to run dfetch in (default: project root)
2523
#
2624
# ## Outputs
@@ -36,10 +34,6 @@ branding:
3634
color: 'blue'
3735

3836
inputs:
39-
dfetch-install:
40-
description: 'pip install argument for dfetch (default: . for local)'
41-
required: false
42-
default: '.'
4337
working-directory:
4438
description: 'Directory to run dfetch in (default: project root)'
4539
required: false
@@ -58,7 +52,7 @@ runs:
5852
with:
5953
python-version: '3.13'
6054
- name: Install dfetch
61-
run: pip install ${{ inputs.dfetch-install }}
55+
run: pip install .
6256
shell: bash
6357
- name: Run dfetch check (SARIF)
6458
run: dfetch check --sarif sarif.json

.github/workflows/run.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,10 @@ jobs:
3030
- run: dfetch check
3131
- run: dfetch update
3232
- run: dfetch update
33-
- run: dfetch check --sarif sarif.json
34-
- name: Upload SARIF file
35-
uses: github/codeql-action/upload-sarif@v3
33+
- name: Dfetch SARIF Check
34+
uses: ./github/actions/dfetch-action
3635
with:
37-
sarif_file: sarif.json
36+
working-directory: '.'
3837

3938
- name: Run example
4039
working-directory: ./example

0 commit comments

Comments
 (0)