root-signing GCS repository tests #2396
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: root-signing GCS repository tests | |
| on: | |
| workflow_call: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '17 4,10,16,22 * * *' | |
| permissions: {} | |
| jobs: | |
| smoke-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Smoke test Sigstore staging repository with a TUF client | |
| uses: theupdateframework/tuf-on-ci/actions/test-repository@0ef66318d40656f421781f28df93de9c69ccb9ba # v0.18.0 | |
| with: | |
| metadata_url: https://tuf-repo-cdn.sigstage.dev/ | |
| # when workflow is reused in publish.yml, do not require future validity | |
| valid_days: ${{ github.workflow == 'root-signing GCS repository tests' && 5 || 0 }} | |
| offline_valid_days: ${{ github.workflow == 'root-signing GCS repository tests' && 16 || 0 }} | |
| custom-smoke-test: | |
| permissions: | |
| id-token: 'write' # For signing with the GitHub workflow identity | |
| uses: ./.github/workflows/custom-test.yml | |
| with: | |
| metadata_url: https://tuf-repo-cdn.sigstage.dev/ | |
| update-issue: | |
| runs-on: ubuntu-latest | |
| needs: [smoke-test, custom-smoke-test] | |
| # During workflow_call, caller updates issue | |
| if: always() && !cancelled() && github.workflow == 'root-signing GCS repository tests' | |
| permissions: | |
| issues: 'write' # for modifying Issues | |
| steps: | |
| - name: Update the issue for the workflow | |
| uses: theupdateframework/tuf-on-ci/actions/update-issue@0ef66318d40656f421781f28df93de9c69ccb9ba # v0.18.0 | |
| with: | |
| token: ${{ secrets.TUF_ON_CI_TOKEN || secrets.GITHUB_TOKEN }} | |
| success: ${{ !contains(needs.*.result, 'failure') }} |