GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Provide a way to pass a whole configuration as parameter · Issue #1589 · github/codeql-action

Provide a way to pass a whole configuration as parameter #1589

New issue
Copy link
New issue
Copy link
Closed
Closed
Provide a way to pass a whole configuration as parameter#1589
Copy link
Assignees
aeisenberg

Description

@tgrall
tgrall
opened on Mar 18, 2023
Issue body actions

Problem

As a user of GitHub CodeQL in Actions I would like to be able to pass some configuration when running my workflow, for example:

  • pass a query filter from or environment variable or input parameter

Today only a subset of the available configuration/parameters is available in the action.

Solution

Add a new parameter, for example called configuration that will take the same format as a config-file but can be used directly in the action.

The idea is to support the following examples:

  • Complete on configuration

    - uses: github/codeql-action/init@v2
      with:
        languages: ${{ matrix.language }}
        configuration: |
          disable-default-queries: true
          queries:
            - uses: security-extended
            - uses: security-and-quality
          query-filters:
            - include:
          tags: /cwe-020/
  • Actions Variable

    - uses: github/codeql-action/init@v2
      with:
        languages: ${{ matrix.language }}
        configuration: |
              ${{vars.CODEQL_CONF}}    
  • Input Parameter

      - uses: tgrall/codeql-action/init@query-filter
      with:
        languages: ${{ matrix.language }}
        configuration: |
          disable-default-queries: true
          queries:
            - uses: security-extended
            - uses: security-and-quality
          query-filters:
            - include:
                tags: /${{ github.event.inputs.codeql-include-tags }}/ 
Reacted by Jeff Widman

Activity

  1. aibaars
    assigned
    aeisenberg
    on Mar 20, 2023
  2. aeisenberg commented on Jun 26, 2023

    @aeisenberg
    aeisenberg
    on Jun 26, 2023
    Contributor
    More actions

    This is now available.

  3. aeisenberg
    closed this as completedon Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @aeisenberg
    aeisenberg

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.