diff --git a/.github/workflows/dependency-age-check-actions.yml b/.github/workflows/dependency-age-check-actions.yml index a682ce7..d26a02a 100644 --- a/.github/workflows/dependency-age-check-actions.yml +++ b/.github/workflows/dependency-age-check-actions.yml @@ -35,8 +35,20 @@ jobs: # only if/name/needs/permissions/secrets/strategy/uses/with/concurrency # are valid on a job that calls a reusable workflow. The reusable # workflow itself sets `timeout-minutes: 5` internally. - uses: layervai/ops-routines-workflows/.github/workflows/age-check-actions.yml@39fcb54fc36ea7b6032e138bd8b57647f2bb32f0 # v0.4.0 + uses: layervai/ops-routines-workflows/.github/workflows/age-check-actions.yml@4edea7408d64f424780e08f68a54000308817a08 # v0.6.1 with: min_age_days: 7 + # Post a sticky PR comment when an age-check fails, listing each + # pin with its eligible-after date and days remaining. The PR + # author / reviewer sees the retry-after date inline on the PR + # instead of having to click into the run log to find it. Sticky + # comment is updated in place on re-runs and deleted on a clean + # pass; soft-fails to a `::notice` if the token can't write. + comment_on_failure: true permissions: contents: read + # Required for `comment_on_failure: true` to actually post. + # Dependabot PRs default to read-only and need this grant + # explicitly. Without it, the workflow still fails the age check + # correctly — only the inline comment is suppressed. + pull-requests: write diff --git a/.github/workflows/dependency-age-check-pip.yml b/.github/workflows/dependency-age-check-pip.yml index 7975d16..47fe9cb 100644 --- a/.github/workflows/dependency-age-check-pip.yml +++ b/.github/workflows/dependency-age-check-pip.yml @@ -34,8 +34,20 @@ jobs: # only if/name/needs/permissions/secrets/strategy/uses/with/concurrency # are valid on a job that calls a reusable workflow. The reusable # workflow itself sets `timeout-minutes: 5` internally. - uses: layervai/ops-routines-workflows/.github/workflows/age-check-pip.yml@39fcb54fc36ea7b6032e138bd8b57647f2bb32f0 # v0.4.0 + uses: layervai/ops-routines-workflows/.github/workflows/age-check-pip.yml@4edea7408d64f424780e08f68a54000308817a08 # v0.6.1 with: min_age_days: 7 + # Post a sticky PR comment when an age-check fails, listing each + # pin with its eligible-after date and days remaining. The PR + # author / reviewer sees the retry-after date inline on the PR + # instead of having to click into the run log to find it. Sticky + # comment is updated in place on re-runs and deleted on a clean + # pass; soft-fails to a `::notice` if the token can't write. + comment_on_failure: true permissions: contents: read + # Required for `comment_on_failure: true` to actually post. + # Dependabot PRs default to read-only and need this grant + # explicitly. Without it, the workflow still fails the age check + # correctly — only the inline comment is suppressed. + pull-requests: write diff --git a/.github/workflows/issue-priority.yml b/.github/workflows/issue-priority.yml index e24357a..7fe57b4 100644 --- a/.github/workflows/issue-priority.yml +++ b/.github/workflows/issue-priority.yml @@ -48,6 +48,6 @@ jobs: # reusable's own `sender.type != 'Bot'` check short-circuits them # before setFailed — net effect is a near-instant no-op run. if: ${{ github.actor != 'github-actions[bot]' }} - uses: layervai/ops-routines-workflows/.github/workflows/issue-priority.yml@39fcb54fc36ea7b6032e138bd8b57647f2bb32f0 # v0.4.0 + uses: layervai/ops-routines-workflows/.github/workflows/issue-priority.yml@4edea7408d64f424780e08f68a54000308817a08 # v0.6.1 permissions: issues: write diff --git a/.github/workflows/validate-issue-templates.yml b/.github/workflows/validate-issue-templates.yml index eb54728..b0031f5 100644 --- a/.github/workflows/validate-issue-templates.yml +++ b/.github/workflows/validate-issue-templates.yml @@ -35,4 +35,4 @@ permissions: jobs: validate-templates: - uses: layervai/ops-routines-workflows/.github/workflows/validate-issue-templates.yml@39fcb54fc36ea7b6032e138bd8b57647f2bb32f0 # v0.4.0 + uses: layervai/ops-routines-workflows/.github/workflows/validate-issue-templates.yml@4edea7408d64f424780e08f68a54000308817a08 # v0.6.1