Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
Got the PR Number from Ref
Browse files Browse the repository at this point in the history
Signed-off-by: naveensrinivasan <[email protected]>
  • Loading branch information
naveensrinivasan committed Jun 7, 2023
1 parent 1b37b90 commit 05afea0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ func main() {
repo := os.Getenv("GITHUB_REPOSITORY")
commitSHA := os.Getenv("GITHUB_SHA")
token := os.Getenv("GITHUB_TOKEN")
pr := os.Getenv("GITHUB_PR_NUMBER")
ref := os.Getenv("GITHUB_REF")
pr := strings.TrimPrefix(ref, "refs/pull/")
ghUser := os.Getenv("GITHUB_ACTOR")
fileName := os.Getenv("SCORECARD_CHECKS")
if err := Validate(token, repo, commitSHA, pr); err != nil {
Expand Down

0 comments on commit 05afea0

Please sign in to comment.