Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validator incorrectly flags runner.debug as invalid #365

Closed
walbourn opened this issue Jul 29, 2024 · 1 comment
Closed

Validator incorrectly flags runner.debug as invalid #365

walbourn opened this issue Jul 29, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@walbourn
Copy link

walbourn commented Jul 29, 2024

Add to a GitHub Actions YAML file (assuming a Windows runner)

jobs:
  build:
    steps:
    - name: Test
      shell: cmd 
      working-directory: ${{ github.workspace }}
      run: ctest --preset=${{ matrix.build_type }} %CTEST_DEBUG_OPTS%
      env:
        CTEST_DEBUG_OPTS: ${{ runner.debug == '1' && '--output-on-failure' || '' }}

The VS Code Extensions flags it as a warning:

"Context access might be invalid"

Per this PR, this was previously undocumented but is supported:

github/docs#19404

Note that runner.debug doesn't work at global scope or at job scope, only at steps.

@walbourn walbourn added the bug Something isn't working label Jul 29, 2024
@walbourn walbourn changed the title Validator incorrectly flags runner.debug as not supported Validator incorrectly flags runner.debug as invalid Jul 29, 2024
@github-project-automation github-project-automation bot moved this from Backlog 🗒 to Done 💤 in GitHub Actions VS Code Extension Jul 29, 2024
@muzimuzhi
Copy link

Already reported in the actions/languageservices repo:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

2 participants