Skip to content

Commit 7045831

Browse files
[StepSecurity] Apply security best practices (#1839)
Signed-off-by: StepSecurity Bot <[email protected]>
1 parent 55ff4df commit 7045831

File tree

3 files changed

+181
-0
lines changed

3 files changed

+181
-0
lines changed

.github/dependabot.yml

+86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: docker
4+
directory: /.devcontainer
5+
schedule:
6+
interval: daily
7+
8+
- package-ecosystem: github-actions
9+
directory: /
10+
schedule:
11+
interval: daily
12+
13+
- package-ecosystem: docker
14+
directory: /docs
15+
schedule:
16+
interval: daily
17+
18+
- package-ecosystem: pip
19+
directory: /docs
20+
schedule:
21+
interval: daily
22+
23+
- package-ecosystem: npm
24+
directory: /docs/snippets
25+
schedule:
26+
interval: daily
27+
28+
- package-ecosystem: npm
29+
directory: /examples/cdk
30+
schedule:
31+
interval: daily
32+
33+
- package-ecosystem: npm
34+
directory: /examples/sam
35+
schedule:
36+
interval: daily
37+
38+
- package-ecosystem: npm
39+
directory: /layers
40+
schedule:
41+
interval: daily
42+
43+
- package-ecosystem: npm
44+
directory: /
45+
schedule:
46+
interval: daily
47+
48+
- package-ecosystem: npm
49+
directory: /packages/batch
50+
schedule:
51+
interval: daily
52+
53+
- package-ecosystem: npm
54+
directory: /packages/commons
55+
schedule:
56+
interval: daily
57+
58+
- package-ecosystem: npm
59+
directory: /packages/idempotency
60+
schedule:
61+
interval: daily
62+
63+
- package-ecosystem: npm
64+
directory: /packages/logger
65+
schedule:
66+
interval: daily
67+
68+
- package-ecosystem: npm
69+
directory: /packages/metrics
70+
schedule:
71+
interval: daily
72+
73+
- package-ecosystem: npm
74+
directory: /packages/parameters
75+
schedule:
76+
interval: daily
77+
78+
- package-ecosystem: npm
79+
directory: /packages/testing
80+
schedule:
81+
interval: daily
82+
83+
- package-ecosystem: npm
84+
directory: /packages/tracer
85+
schedule:
86+
interval: daily

.github/workflows/codeql.yml

+73
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@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
45+
46+
# Initializes the CodeQL tools for scanning.
47+
- name: Initialize CodeQL
48+
uses: github/codeql-action/init@8b7fcbfac2aae0e6c24d9f9ebd5830b1290b18e4 # v2.23.0
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@8b7fcbfac2aae0e6c24d9f9ebd5830b1290b18e4 # v2.23.0
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@8b7fcbfac2aae0e6c24d9f9ebd5830b1290b18e4 # v2.23.0
72+
with:
73+
category: "/language:${{matrix.language}}"
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Dependency Review Action
2+
#
3+
# This Action will scan dependency manifest files that change as part of a Pull Request,
4+
# surfacing known-vulnerable versions of the packages declared or updated in the PR.
5+
# Once installed, if the workflow run is marked as required,
6+
# PRs introducing known-vulnerable packages will be blocked from merging.
7+
#
8+
# Source repository: https://github.com/actions/dependency-review-action
9+
name: 'Dependency Review'
10+
on: [pull_request]
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
dependency-review:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: 'Checkout Repository'
20+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
21+
- name: 'Dependency Review'
22+
uses: actions/dependency-review-action@0efb1d1d84fc9633afcdaad14c485cbbc90ef46c # v2.5.1

0 commit comments

Comments
 (0)