From fe8c2ac9c3c21a2a463d87ae00c066dabc2c6cef Mon Sep 17 00:00:00 2001 From: Manuel de Brito Fontes Date: Wed, 18 Nov 2026 16:52:41 -0300 Subject: [PATCH] ci: propose the node image's newest digest every Monday The ts-oracle's goldens are only as true as the Node they were made with, and its digest otherwise moves when someone runs versions check. go-tools' versions refresh -propose opens one pull request with what moved and the entry's note; parity:contract's oracle gate is the check of it. Only node is refreshed: golangci-lint is go-tools' version, distroless and go-licenses are checked by a release, which a pull request does not run, and task's note names no check of a move. The pull request is opened with the run's own token, so CI does not start on it by itself: this repository's workflows use no GitHub App. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/refresh.yml | 43 +++++++++++++++++++++++++++++++++++ Taskfile.yml | 8 +++++++ 2 files changed, 51 insertions(+) create mode 100644 .github/workflows/refresh.yml diff --git a/.github/workflows/refresh.yml b/.github/workflows/refresh.yml new file mode 100644 index 0000000..ef49eb9 --- /dev/null +++ b/.github/workflows/refresh.yml @@ -0,0 +1,43 @@ +# Every Monday, the newest digest of the node image the ts-oracle runs in, proposed as a pull +# request (task refresh): Node's patch releases change URL parsing, IDNA and JSON.parse messages, +# and a golden is only as true as the Node it was made with. Nothing here merges. +# +# The pull request is opened with this run's own token, which starts no workflow: CI's checks do +# not run on it until a person pushes to it, or closes and reopens it. +name: Refresh + +on: + schedule: + - cron: "17 9 * * 1" + workflow_dispatch: {} + +concurrency: + group: refresh + cancel-in-progress: false + +permissions: + contents: read + +jobs: + refresh: + if: github.ref == 'refs/heads/main' + runs-on: ubuntu-latest + timeout-minutes: 10 + permissions: + # The refresh branch is pushed with the checkout's credentials, and its pull request opened. + contents: write + pull-requests: write + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7 + with: + go-version-file: go.mod + - name: Propose the pins CI checks at their newest + env: + GITHUB_TOKEN: ${{ github.token }} + # A runner has no git identity, and each moved entry is a commit. + GIT_AUTHOR_NAME: github-actions[bot] + GIT_AUTHOR_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com + GIT_COMMITTER_NAME: github-actions[bot] + GIT_COMMITTER_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com + run: go tool task refresh diff --git a/Taskfile.yml b/Taskfile.yml index 4abf093..3acbb7f 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -398,6 +398,14 @@ tasks: go run ./cmd/devtool daily-changed >> "$out" fi + # Only the entries whose move a pull request's own checks answer: node's, which parity:contract's + # oracle gate holds. golangci-lint is go-tools' version, a person's to move with it; distroless + # and go-licenses are checked by a release, which no pull request runs; task's note names no check. + refresh: + desc: Propose what is behind of the entries CI checks (node) as one pull request; refresh.yml's step, and it pushes and opens a pull request as GITHUB_TOKEN or GH_TOKEN + cmds: + - versions refresh -propose node + clean: desc: Remove generated artifacts and test containers cmds: