Files
codeql/action.yml
2024-03-15 22:01:06 +00:00

34 lines
897 B
YAML

name: "codeql-actions"
description: "CodeQL Pack for GitHub Actions and Workflows"
inputs:
token:
description: GitHub Token
default: ${{ github.token }}
source-root:
description: "Path of the root source code directory, relative to $GITHUB_WORKSPACE."
default: ${{ github.workspace }}
sarif-output:
description: "SARIF File Output"
default: "codeql-actions.sarif"
suite:
description: "CodeQL Suite to run"
default: "actions-code-scanning"
runs:
using: 'composite'
steps:
- name: Do something with context
shell: bash
env:
GITHUB_TOKEN: ${{ inputs.token }}
GH_TOKEN: ${{ inputs.token }}
INPUT_SOURCE-ROOT: ${{ inputs.source-root }}
INPUT_SARIF-OUTPUT: ${{ inputs.sarif-output }}
INPUT_SUITE: ${{ inputs.suite }}
run: |
node ${{ github.action_path }}/.github/action/dist/index.js