-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (48 loc) · 1.6 KB
/
codeql-javascript.yml
File metadata and controls
53 lines (48 loc) · 1.6 KB
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
43
44
45
46
47
48
49
50
51
52
53
name: CodeQL (Javascript)
on:
workflow_call:
inputs:
timeout-minutes:
description: 'Optional override for larger builds'
default: 20
required: false
type: number
build-command:
description: 'Optional application build command'
required: false
type: string
jobs:
analyze:
name: Code Scanning - CodeQL
runs-on: ubuntu-latest.
timeout-minutes: ${{ inputs.timeout-minutes }}
permissions:
security-events: write
# required to fetch internal or private CodeQL packs
packages: read
# only required for workflows in private repositories
actions: read
contents: read
strategy:
fail-fast: false
steps:
- name: Capture start time
run: echo "start_time=$(date +%s)" >> $GITHUB_ENV
shell: bash
- name: Perform CodeQL Analysis
id: codeql
uses: hyperwallet/public-security-workflows/codeql@main
with:
language: javascript-typescript
build-mode: ${{ inputs.build-command != '' && 'manual' || 'none' }}
timeout-minutes: ${{ inputs.timeout-minutes }}
build-command: ${{ inputs.build-command }}
- name: DataDog
if: always() && github.event_name != 'merge_group'
uses: hyperwallet/public-security-workflows/datadog@main
with:
SOURCE: "CodeQL"
DATADOG_API_KEY: ${{ secrets.BUILD_SECURITY_PAYPAL_DATADOG_QA_TOKEN_PAYPAL_DATADOG_QA_TOKEN }}
BU_NAME: "Hyperwallet"
start_time: ${{ env.start_time }}
OUTCOME: "${{ steps.codeql.outcome }}"