Skip to content

Commit

Permalink
schedule-selftest: init (#66)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Pan <a@tny.town>
Co-authored-by: William Woodruff <william@trailofbits.com>
  • Loading branch information
tnytown and woodruffw authored Apr 24, 2023
1 parent 64c04b5 commit dbe0a6f
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/schedule-selftest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Scheduled self-test

on:
schedule:
- cron: '0 12 * * *' # Every day at 1200 UTC

jobs:
run-selftests:
permissions:
id-token: write

uses: ./.github/workflows/selftest.yml
open-issue:
permissions:
issues: write

runs-on: ubuntu-latest
if: ${{ failure() }}
needs: run-selftests

steps:
- name: Generate issue text
run: |
cat <<- EOF >/tmp/issue.md
## Self-test failure
A scheduled test of the workflow has failed.
This suggests one of three conditions:
* A backwards-incompatible change in a Sigstore component;
* A regression in \`gh-action-sigstore-python\`;
* A transient error.
The full CI failure can be found here:
${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/$GITHUB_RUN_ID
EOF
- name: Open issue
uses: peter-evans/create-issue-from-file@433e51abf769039ee20ba1293a088ca19d573b7f # v4.0.1
with:
title: "[CI] Self-test failure"
# created in the previous step
content-filepath: /tmp/issue.md
labels: bug
assignees: woodruffw,tetsuo-cpp,tnytown
1 change: 1 addition & 0 deletions .github/workflows/selftest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- main
pull_request:
workflow_dispatch:
workflow_call:

permissions:
id-token: write
Expand Down

0 comments on commit dbe0a6f

Please sign in to comment.