Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions actions/installer/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,12 @@ function cleanup() {
}
function run() {
return __awaiter(this, void 0, void 0, function* () {
// Get requested verifier version and validate.
// See https://docs.github.com/en/actions/learn-github-actions/contexts#github-context.
const actionRef = process.env.GITHUB_ACTION_REF || "";
// Get requested verifier version and validate
// SLSA_VERIFIER_CI_ACTION_REF is a utility env variable to help us test
// the Action in CI.
const actionRef = process.env.GITHUB_ACTION_REF ||
process.env.SLSA_VERIFIER_CI_ACTION_REF ||
"";
let version;
try {
version = yield getVerifierVersion(actionRef);
Expand Down
2 changes: 1 addition & 1 deletion actions/installer/dist/index.js.map

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions actions/installer/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,13 @@ async function cleanup(): Promise<void> {
}

async function run(): Promise<void> {
// Get requested verifier version and validate.
// See https://docs.github.com/en/actions/learn-github-actions/contexts#github-context.
const actionRef = process.env.GITHUB_ACTION_REF || "";
// Get requested verifier version and validate
// SLSA_VERIFIER_CI_ACTION_REF is a utility env variable to help us test
// the Action in CI.
const actionRef =
process.env.GITHUB_ACTION_REF ||
process.env.SLSA_VERIFIER_CI_ACTION_REF ||
"";
let version: string;
try {
version = await getVerifierVersion(actionRef);
Expand Down