Skip to content

Commit

Permalink
Correctly send the pull-request info to the action's container
Browse files Browse the repository at this point in the history
  • Loading branch information
praiskup committed Sep 6, 2024
1 parent 9dca5b6 commit 89f61ac
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,20 @@ inputs:
default: 'false'
required: false

pull_request_number_id:
description: "The pull requires ID (internal)"
default: ${{ github.event.pull_request.number }}
required: false

pull_request_head:
description: "The pull requirest SHA1 without merge commit (internal)"
default: ${{ github.event.pull_request.head.sha }}
required: false

outputs:
sarif:
description: 'The SARIF file containing defects'

runs:
using: docker
image: docker://quay.io/copr/vcs-diff-lint:latest
env:
INPUT_PULL_REQUEST_ID: ${{ github.event.pull_request.number }}
INPUT_PULL_REQUEST_HEAD: ${{ github.event.pull_request.head.sha }}

0 comments on commit 89f61ac

Please sign in to comment.