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

VSCode "Context Access might be invalid" warning #223

Open
thoughtfuldata opened this issue Feb 15, 2024 · 4 comments
Open

VSCode "Context Access might be invalid" warning #223

thoughtfuldata opened this issue Feb 15, 2024 · 4 comments

Comments

@thoughtfuldata
Copy link

im getting this warning when using

- uses: dorny/paths-filter@v3
      id: changes
      with:
        filters: |
          made-up-name:
            - 'made-up-name/**'

with

- name: Build image and push to Docker Hub
      uses: docker/build-push-action@v5
      if: steps.changes.outputs.book-made-up-name == 'true'
      with:
          context: REMOVED
          tags: REMOVED
          push: true

if: steps.changes.outputs.book-made-up-name == 'true' This is where the error appears. I only get this error with this github action

@TheMikeyRoss
Copy link

im getting it in the "outputs" section
image

@wmertens
Copy link

wmertens commented May 6, 2024

I think the problem is that the vscode extension doesn't parse the filters and has no idea what the outputs of the action are.

So either the extension needs to be changed to parse the filters, or there needs to be some extra argument or comment you can add to actions that tells the extension about the outputs.

@SimonWoidig
Copy link

Seeing this aswell. Is there a way, to ignore the warnings for specific lines?

@amoralesc
Copy link

@SimonWoidig nope

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants