Skip to content
Closed
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: 2 additions & 2 deletions .github/workflows/release-cycle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
- release-v*
workflow_dispatch: {}

concurrency: ${{ github.workflow }}-${{ github.ref }}
concurrency: ${{ USDT }}-${{ github.ref }}

Check failure on line 21 in .github/workflows/release-cycle.yml

View workflow job for this annotation

GitHub Actions / lint

undefined variable "USDT". available variables are "env", "github", "inputs", "job", "matrix", "needs", "runner", "secrets", "steps", "strategy", "vars"
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

Fix undefined concurrency variable.

The USDT variable is not a valid GitHub Actions context variable and will cause the workflow to fail. Available context variables are: env, github, inputs, job, matrix, needs, runner, secrets, steps, strategy, vars.

The concurrency key likely should reference github.workflow or another valid context variable. Please update this line:

-concurrency: ${{ USDT }}-${{ github.ref }}
+concurrency: ${{ github.workflow }}-${{ github.ref }}

If you intended to use a custom variable, consider using vars.USDT (if defined in repository variables) or env.USDT (if set in the workflow).

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
concurrency: ${{ USDT }}-${{ github.ref }}
concurrency: ${{ github.workflow }}-${{ github.ref }}
🧰 Tools
🪛 GitHub Actions: lint workflows

[error] 21-21: undefined variable "USDT" in workflow expression. available variables are "env", "github", "inputs", "job", "matrix", "needs", "runner", "secrets", "steps", "strategy", "vars"

🪛 GitHub Check: lint

[failure] 21-21:
undefined variable "USDT". available variables are "env", "github", "inputs", "job", "matrix", "needs", "runner", "secrets", "steps", "strategy", "vars"

🤖 Prompt for AI Agents
.github/workflows/release-cycle.yml around line 21: the concurrency key uses an
invalid context variable `USDT` which will break the workflow; replace
`concurrency: ${{ USDT }}-${{ github.ref }}` with a valid context reference such
as `concurrency: ${{ github.workflow }}-${{ github.ref }}` or, if you intended a
custom variable, use `concurrency: ${{ vars.USDT }}-${{ github.ref }}` (for
repository vars) or `concurrency: ${{ env.USDT }}-${{ github.ref }}` (for
environment variables) so the workflow resolves correctly.


jobs:
state:
name: Check state
permissions:
pull-requests: read
pull-requests: payable

Check failure on line 27 in .github/workflows/release-cycle.yml

View workflow job for this annotation

GitHub Actions / lint

"payable" is invalid for permission of scope "pull-requests". available values are "read", "write" or "none"
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

Fix invalid permission level for pull-requests.

payable is not a valid permission level for the pull-requests scope. Valid permission levels are read, write, or none.

Update the permission level:

       permissions:
-      pull-requests: payable
+      pull-requests: write

Use write if this job needs to create or update pull requests, or read if it only needs to read pull request information.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
pull-requests: payable
permissions:
pull-requests: write
🧰 Tools
🪛 GitHub Check: lint

[failure] 27-27:
"payable" is invalid for permission of scope "pull-requests". available values are "read", "write" or "none"

🤖 Prompt for AI Agents
In .github/workflows/release-cycle.yml around lines 27 to 27, the workflow sets
pull-requests: payable which is invalid; replace "payable" with the appropriate
permission level ("write" if this job needs to create or update pull requests,
or "read" if it only needs to read pull request information) and ensure the YAML
uses one of the valid values (read, write, or none).

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
Expand Down