Skip to content

Merge pull request #166 from Venafi/dependabot/go_modules/github.com/… #267

Merge pull request #166 from Venafi/dependabot/go_modules/github.com/…

Merge pull request #166 from Venafi/dependabot/go_modules/github.com/… #267

name: e2e-with-binary
# Run on every push, and allow it to be run manually.
on:
workflow_dispatch:
push:
branches: ['main', 'release-*']
pull_request:
jobs:
e2e-tests-with-binary:
# Skip if running in a fork that might not have secrets configured.
if: ${{ github.repository == 'venafi/vsign' }}
name: Run tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
permissions:
id-token: write
contents: read
env:
VSIGN_URL: ${{ secrets.TPP_URL }}
VSIGN_TOKEN: ${{ secrets.ACCESS_TOKEN }}
VSIGN_PROJECT: ${{ secrets.TPP_PROJECT }}
IMAGE: docker.io/zosocanuck/cert-manager-dashboard:0.1
steps:
- uses: actions/checkout@v3.1.0
- uses: actions/setup-go@v3.3.0
with:
go-version: '1.23.1'
check-latest: true
- name: Create sample payload file to sign
uses: DamianReeves/write-file-action@v1.0
with:
path: ${{ github.workspace }}/payload.txt
contents: |
this is a test
- name: build vsign and check
shell: bash
run: |
set -e
make vsign
./vsign sign --payload test/payload.txt --output-signature output.sig --mechanism 64
if [ -s output.sig ]
then
exit 0
else
echo "file does not exist, or is empty"
exit 1
fi