reference @actions/attest package (#10)

Signed-off-by: Brian DeHamer <bdehamer@github.com>
This commit is contained in:
Brian DeHamer
2024-02-26 14:49:08 -08:00
committed by GitHub
parent 96a4c7ef30
commit d6e451253f
27 changed files with 1396 additions and 3168 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import { generateProvenancePredicate } from '@actions/attest'
import { buildSLSAProvenancePredicate } from '@actions/attest'
import * as core from '@actions/core'
/**
@@ -8,7 +8,7 @@ import * as core from '@actions/core'
export async function run(): Promise<void> {
try {
// Calculate subject from inputs and generate provenance
const predicate = generateProvenancePredicate(process.env)
const predicate = buildSLSAProvenancePredicate(process.env)
core.setOutput('predicate', predicate.params)
core.setOutput('predicate-type', predicate.type)