Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ env:
jobs:
coverage:
runs-on: ubuntu-24.04-arm
permissions:
id-token: write
Comment on lines +22 to +23

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep actions: write for cache eviction

When this job runs on push to master, adding a job-level permissions block with only id-token: write removes the previous GITHUB_TOKEN access for the later gh actions-cache delete step. GitHub's workflow syntax says unspecified permissions are set to none, and the Actions cache delete endpoint requires Actions repository permission write; without actions: write the delete is rejected (then hidden by || echo "not exist"), so the following actions/cache/save cannot refresh the master coverage cache under the same key.

Useful? React with 👍 / 👎.

env:
OS: ubuntu-24.04-arm
OCAML_COMPILER: 5.3.0
Expand Down Expand Up @@ -200,4 +202,4 @@ jobs:
with:
files: _coverage/coverage.json
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}
use_oidc: true
Loading