From cfefe3a7e845229d2ae483833452602ab6209ce2 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 29 Jan 2024 16:46:40 -0500 Subject: [PATCH] Clarify that ref inputs are ignored for forks --- analyze/action.yml | 4 ++-- upload-sarif/action.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/analyze/action.yml b/analyze/action.yml index b0293f3cef..7e5f02ac02 100644 --- a/analyze/action.yml +++ b/analyze/action.yml @@ -52,10 +52,10 @@ inputs: # If changing this, make sure to update workflow.ts accordingly. default: ${{ github.workspace }} ref: - description: "The ref where results will be uploaded. If not provided, the Action will use the GITHUB_REF environment variable. If provided, the sha input must be provided as well. This input is not available in pull requests from forks." + description: "The ref where results will be uploaded. If not provided, the Action will use the GITHUB_REF environment variable. If provided, the sha input must be provided as well. This input is ignored for pull requests from forks." required: false sha: - description: "The sha of the HEAD of the ref where results will be uploaded. If not provided, the Action will use the GITHUB_SHA environment variable. If provided, the ref input must be provided as well. This input is not available in pull requests from forks." + description: "The sha of the HEAD of the ref where results will be uploaded. If not provided, the Action will use the GITHUB_SHA environment variable. If provided, the ref input must be provided as well. This input is ignored for pull requests from forks." required: false category: description: String used by Code Scanning for matching the analyses diff --git a/upload-sarif/action.yml b/upload-sarif/action.yml index eb21e4d73d..1794c365ad 100644 --- a/upload-sarif/action.yml +++ b/upload-sarif/action.yml @@ -14,10 +14,10 @@ inputs: required: false default: ${{ github.workspace }} ref: - description: "The ref where results will be uploaded. If not provided, the Action will use the GITHUB_REF environment variable. If provided, the sha input must be provided as well. This input is not available in pull requests from forks." + description: "The ref where results will be uploaded. If not provided, the Action will use the GITHUB_REF environment variable. If provided, the sha input must be provided as well. This input is ignored for pull requests from forks." required: false sha: - description: "The sha of the HEAD of the ref where results will be uploaded. If not provided, the Action will use the GITHUB_SHA environment variable. If provided, the ref input must be provided as well. This input is not available in pull requests from forks." + description: "The sha of the HEAD of the ref where results will be uploaded. If not provided, the Action will use the GITHUB_SHA environment variable. If provided, the ref input must be provided as well. This input is ignored for pull requests from forks." required: false token: default: ${{ github.token }}