Skip to content

Commit

Permalink
Make key path a variable
Browse files Browse the repository at this point in the history
Signed-off-by: Aditya Sirish <[email protected]>
  • Loading branch information
adityasaky committed Apr 30, 2024
1 parent db6f303 commit aa814ca
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/gittuf-rsl-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ jobs:
git config --global user.name "${{ github.workflow }}"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
echo "$KEY" > /tmp/key
gittuf_key_path="/tmp/gittuf-key"
echo "$KEY" > $gittuf_key_path
git fetch origin refs/gittuf/reference-state-log:refs/gittuf/reference-state-log refs/gittuf/attestations:refs/gittuf/attestations
GITTUF_DEV=1 gittuf dev attest-github --signing-key /tmp/key --repository ${{ github.repository }} --commit ${{ github.sha }} --base-branch "main"
GITTUF_DEV=1 gittuf dev attest-github --signing-key $gittuf_key_path --repository ${{ github.repository }} --commit ${{ github.sha }} --base-branch "main"
gittuf rsl record main
git push origin refs/gittuf/reference-state-log:refs/gittuf/reference-state-log refs/gittuf/attestations:refs/gittuf/attestations

0 comments on commit aa814ca

Please sign in to comment.