mirror of
https://github.com/hashicorp/packer.git
synced 2026-10-15 10:42:04 -04:00
The pinned version validates its github-token input with a 100 character cap, and the Actions token now exceeds that, so every run fails before locking anything: ##[error]"github-token" length must be less than or equal to 100 characters long v6 raised the cap to 1000 (v4 and v5.0.x both still validate max(100)). Every input this workflow passes exists unchanged in the v6 schema, so the pin bump is the whole fix. Pinned to the v6.0.2 release commit. Co-authored-by: Tushar Pagar <[email protected]>
36 lines
1.5 KiB
YAML
36 lines
1.5 KiB
YAML
name: 'Lock Threads'
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '50 1 * * *'
|
|
|
|
# Only 50 issues will be handled during a given run.
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
lock:
|
|
permissions:
|
|
issues: write # for dessant/lock-threads to lock issues
|
|
pull-requests: write # for dessant/lock-threads to lock PRs
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: dessant/lock-threads@89ae32b08ed1a541efecbab17912962a5e38981c # v6.0.2
|
|
with:
|
|
github-token: ${{ github.token }}
|
|
issue-comment: >
|
|
I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.
|
|
|
|
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
|
|
issue-inactive-days: '30'
|
|
# Issues older than 180 days ago should be ignored
|
|
exclude-issue-created-before: '2020-11-01'
|
|
pr-comment: >
|
|
I'm going to lock this pull request because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.
|
|
|
|
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
|
|
pr-inactive-days: '30'
|
|
# Issues older than 180 days ago should be ignored
|
|
exclude-pr-created-before: '2020-11-01'
|
|
|