Skip to content

Commit

Permalink
Fix red squiggle in VSCode
Browse files Browse the repository at this point in the history
`octokit/request-action` only defines a `route` input but it also will
slurp up all provided action inputs and interpolate them into the
provided route.

Because `owner` and `repo` aren't declared inputs to the action, VSCode
reports an error. Replace this with a hardcoded route to minimize the
chance of bugs and security vulnerabilities.
  • Loading branch information
lopopolo committed Feb 9, 2025
1 parent 9eb358f commit e219bb8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/toolchain-version-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ jobs:
id: latest_rust_release
uses: octokit/request-action@dad4362715b7fb2ddedf9772c8670824af564f0d # v2.4.0
with:
route: GET /repos/{owner}/{repo}/releases/latest
owner: rust-lang
repo: rust
route: GET /repos/rust-lang/rust/releases/latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit e219bb8

Please sign in to comment.