Skip to content

Commit 3d3c3c9

Browse files
[StepSecurity] Apply security best practices
Signed-off-by: StepSecurity Bot <[email protected]>
1 parent d13f3c6 commit 3d3c3c9

File tree

2 files changed

+174
-1
lines changed

2 files changed

+174
-1
lines changed

.github/dependabot.yml

Lines changed: 101 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,104 @@ updates:
5555
vitest:
5656
patterns:
5757
- "vitest"
58-
- "@vitest/*"
58+
- "@vitest/*"
59+
60+
- package-ecosystem: docker
61+
directory: /.devcontainer
62+
schedule:
63+
interval: daily
64+
65+
- package-ecosystem: github-actions
66+
directory: /
67+
schedule:
68+
interval: daily
69+
70+
- package-ecosystem: docker
71+
directory: /docs
72+
schedule:
73+
interval: daily
74+
75+
- package-ecosystem: pip
76+
directory: /docs
77+
schedule:
78+
interval: daily
79+
80+
- package-ecosystem: npm
81+
directory: /examples/app
82+
schedule:
83+
interval: daily
84+
85+
- package-ecosystem: npm
86+
directory: /examples/snippets
87+
schedule:
88+
interval: daily
89+
90+
- package-ecosystem: npm
91+
directory: /layers
92+
schedule:
93+
interval: daily
94+
95+
- package-ecosystem: npm
96+
directory: /
97+
schedule:
98+
interval: daily
99+
100+
- package-ecosystem: npm
101+
directory: /packages/batch
102+
schedule:
103+
interval: daily
104+
105+
- package-ecosystem: npm
106+
directory: /packages/commons
107+
schedule:
108+
interval: daily
109+
110+
- package-ecosystem: npm
111+
directory: /packages/event-handler
112+
schedule:
113+
interval: daily
114+
115+
- package-ecosystem: npm
116+
directory: /packages/idempotency
117+
schedule:
118+
interval: daily
119+
120+
- package-ecosystem: npm
121+
directory: /packages/jmespath
122+
schedule:
123+
interval: daily
124+
125+
- package-ecosystem: npm
126+
directory: /packages/logger
127+
schedule:
128+
interval: daily
129+
130+
- package-ecosystem: npm
131+
directory: /packages/metrics
132+
schedule:
133+
interval: daily
134+
135+
- package-ecosystem: npm
136+
directory: /packages/parameters
137+
schedule:
138+
interval: daily
139+
140+
- package-ecosystem: npm
141+
directory: /packages/parser
142+
schedule:
143+
interval: daily
144+
145+
- package-ecosystem: npm
146+
directory: /packages/testing
147+
schedule:
148+
interval: daily
149+
150+
- package-ecosystem: npm
151+
directory: /packages/tracer
152+
schedule:
153+
interval: daily
154+
155+
- package-ecosystem: npm
156+
directory: /packages/validation
157+
schedule:
158+
interval: daily

.github/workflows/codeql.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: ["main"]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: ["main"]
20+
schedule:
21+
- cron: "0 0 * * 1"
22+
23+
permissions:
24+
contents: read
25+
26+
jobs:
27+
analyze:
28+
name: Analyze
29+
runs-on: ubuntu-latest
30+
permissions:
31+
actions: read
32+
contents: read
33+
security-events: write
34+
35+
strategy:
36+
fail-fast: false
37+
matrix:
38+
language: ["javascript", "typescript"]
39+
# CodeQL supports [ $supported-codeql-languages ]
40+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
41+
42+
steps:
43+
- name: Checkout repository
44+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
45+
46+
# Initializes the CodeQL tools for scanning.
47+
- name: Initialize CodeQL
48+
uses: github/codeql-action/init@5f8171a638ada777af81d42b55959a643bb29017 # v3.28.12
49+
with:
50+
languages: ${{ matrix.language }}
51+
# If you wish to specify custom queries, you can do so here or in a config file.
52+
# By default, queries listed here will override any specified in a config file.
53+
# Prefix the list here with "+" to use these queries and those in the config file.
54+
55+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
56+
# If this step fails, then you should remove it and run the build manually (see below)
57+
- name: Autobuild
58+
uses: github/codeql-action/autobuild@5f8171a638ada777af81d42b55959a643bb29017 # v3.28.12
59+
60+
# ℹ️ Command-line programs to run using the OS shell.
61+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
62+
63+
# If the Autobuild fails above, remove it and uncomment the following three lines.
64+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
65+
66+
# - run: |
67+
# echo "Run, Build Application using script"
68+
# ./location_of_script_within_repo/buildscript.sh
69+
70+
- name: Perform CodeQL Analysis
71+
uses: github/codeql-action/analyze@5f8171a638ada777af81d42b55959a643bb29017 # v3.28.12
72+
with:
73+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)