镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Support for locally present bundles #154

Closed

Description

@esbena

I would like to run code-scanning with a custom code-scanning bundle
that already is present on my local disk. I can currently do that by
making the following hack:

1 Install bundle in tool cache:

Use toolCache.cacheDir to install the bundle with a specially crafted ID:

tc.cacheDir(localBundlePath, 'CodeQL', "0.0.0-XXX-DUMMY-BUNDLE-ID");

2 Convince codeql to look in the tool cache:

The codeql action is then invoked with a dummy URL that will make codeql.ts lookup the bundle with the specially crafted ID:

        ...
        tools: dummy://codeql-bundle-XXX-DUMMY-BUNDLE-ID/dummy
        ...

This works, but I would like a more reliable solution. I am not sure
what the best approach is for supporting my use case, but I am happy
to look into implementing a suggestion.

Activity

  1. aibaars commented on Jun 24, 2021

    @aibaars
    Contributor

    I think the tools: property could be made to allow file:// URL.

  2. edoardopirovano commented on Jun 24, 2021

    @edoardopirovano
    Contributor

    Agreed, this is something we also need for https://github.com/github/codeql-coreql-team/issues/1264 so I will be looking at it in the near future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions