Skip to content

TUF-on-CI repository tests #2

TUF-on-CI repository tests

TUF-on-CI repository tests #2

Workflow file for this run

name: TUF-on-CI repository tests
on:
workflow_call:
workflow_dispatch:
schedule:
- cron: "17 4,10,16,22 * * *"
permissions: {}
jobs:
smoke-test:
runs-on: ubuntu-latest
permissions:
contents: read # for checking out the repository
steps:
- name: Smoke test TUF-on-CI repository with a TUF client
uses: theupdateframework/tuf-on-ci/actions/test-repository@a486e2d6fcf93af4cb0f479e6a280f34125647d6 # v0.10.0
update-issue:
runs-on: ubuntu-latest
needs: [smoke-test]
# During workflow_call, caller updates issue
if: always() && !cancelled() && github.workflow == 'TUF-on-CI repository tests'
permissions:
issues: write # for modifying Issues
contents: read # for checking out the repository
steps:
- name: Generate GitHub App Token
id: app-token
uses: actions/create-github-app-token@c8f55efbd427e7465d6da1106e7979bc8aaee856 # v1.10.1
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Update the issue for the workflow
uses: theupdateframework/tuf-on-ci/actions/update-issue@a486e2d6fcf93af4cb0f479e6a280f34125647d6 # v0.10.0
with:
token: ${{ steps.app-token.outputs.token }}
success: ${{ !contains(needs.*.result, 'failure') }}