-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
42 lines (37 loc) · 1.18 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Workflow Scan Action
author: "rcowsill"
description: Scan GitHub Actions workflow files with CodeQL
inputs:
extra-queries:
description: Comma-separated list of additional queries to run
default: ""
use-default-queries:
description: Whether to use the default workflow-security-suite queries
default: true
upload:
description: Whether to upload the SARIF file to Code Scanning
default: true
data-dir-name:
description: Name of the directory which will hold data needed by the action
default: workflow-scan-action-data
runs:
using: composite
steps:
- name: Configure CodeQL for workflow security scanning
run: . "$GITHUB_ACTION_PATH/setup.sh"
shell: bash
env:
DATA_DIR_NAME: ${{ inputs.data-dir-name }}
EXTRA_QUERIES: ${{ inputs.extra-queries }}
USE_DEFAULT_QUERIES: ${{ inputs.use-default-queries }}
- uses: github/codeql-action/init@v3
with:
config-file: ${{ env.WSA_CONFIG_PATH }}
queries: ${{ env.WSA_QUERIES }}
languages: javascript
- uses: github/codeql-action/analyze@v3
with:
upload: ${{ inputs.upload }}
branding:
icon: search
color: gray-dark