From e219bb8a130cb8775cddcd2e04a12f3106e2e01e Mon Sep 17 00:00:00 2001 From: Ryan Lopopolo Date: Sat, 8 Feb 2025 19:01:37 -0800 Subject: [PATCH] Fix red squiggle in VSCode `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. --- .github/workflows/toolchain-version-check.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/toolchain-version-check.yaml b/.github/workflows/toolchain-version-check.yaml index 472d06c..0a1c9f2 100644 --- a/.github/workflows/toolchain-version-check.yaml +++ b/.github/workflows/toolchain-version-check.yaml @@ -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 }}