2023-08-23 10:39:49 -04:00
|
|
|
name: e2e test attestationconfig API
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- "release/**"
|
|
|
|
paths:
|
|
|
|
- "internal/api/**"
|
|
|
|
- ".github/workflows/e2e-attestationconfigapi.yml"
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- "internal/api/**"
|
|
|
|
- ".github/workflows/e2e-attestationconfigapi.yml"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
e2e-api:
|
2023-11-14 07:25:52 -05:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
max-parallel: 1
|
|
|
|
matrix:
|
|
|
|
csp: ["azure", "aws"]
|
2023-08-23 10:39:49 -04:00
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
permissions:
|
|
|
|
id-token: write
|
|
|
|
contents: read
|
|
|
|
packages: write
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
id: checkout
|
2023-12-20 10:10:35 -05:00
|
|
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
2023-08-23 10:39:49 -04:00
|
|
|
with:
|
2023-08-31 04:31:45 -04:00
|
|
|
# Don't trigger in forks, use head on pull requests, use default otherwise.
|
|
|
|
ref: ${{ !github.event.pull_request.head.repo.fork && github.head_ref || github.event.pull_request.head.sha || '' }}
|
2023-08-23 10:39:49 -04:00
|
|
|
|
|
|
|
- name: Run Attestationconfig API E2E
|
|
|
|
uses: ./.github/actions/e2e_attestationconfigapi
|
|
|
|
with:
|
|
|
|
buildBuddyApiKey: ${{ secrets.BUILDBUDDY_ORG_API_KEY }}
|
|
|
|
cosignPrivateKey: ${{ secrets.COSIGN_DEV_PRIVATE_KEY }}
|
|
|
|
cosignPassword: ${{ secrets.COSIGN_DEV_PASSWORD }}
|
2023-11-14 07:25:52 -05:00
|
|
|
csp: ${{ matrix.csp }}
|