Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: fix pipeline #11

Merged
merged 1 commit into from
Jul 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Serverless Service CI/CD
name: Library CI/CD

permissions:
id-token: write # This is required for requesting the JWT
Expand All @@ -24,7 +24,7 @@ jobs:
- name: Check out repository code
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Set up Python 3.10
uses: actions/setup-python@bd6b4b6205c4dbad673328db7b31b7fab9e241c0 # v4.6.1
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0
with:
python-version: "3.10"
- name: Set up Node
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
- name: Check out repository code
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Set up Python 3.10
uses: actions/setup-python@bd6b4b6205c4dbad673328db7b31b7fab9e241c0 # v4.6.1
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0
with:
python-version: "3.10"
- name: Install dependencies
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ jobs:

steps:
- name: "Checkout code"
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
persist-credentials: false

- name: "Run analysis"
uses: ossf/scorecard-action@e38b1902ae4f44df626f11ba0734b14fb91f8f86 # v2.1.2
uses: ossf/scorecard-action@08b4669551908b1024bb425080c797723083c031 # v2.2.0
with:
results_file: results.sarif
results_format: sarif
Expand All @@ -59,7 +59,7 @@ jobs:
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: "Upload artifact"
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name: SARIF file
path: results.sarif
Expand Down
2 changes: 0 additions & 2 deletions docs/best_practices/environment_variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ You need to define all your environment variables in a Pydantic schema class tha

For example:



All Pydantic schemas extend Pydantic’s ‘BaseModel’ class, turning them into a dataclass.

The schema defines four environment variables: ‘LOG_LEVEL,’ ‘POWERTOOLS_SERVICE_NAME,’ ‘ROLE_ARN,’ and ‘REST_API.’
Expand Down
1 change: 0 additions & 1 deletion docs/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ title: Getting Started
description: Getting Started
---
## **Prerequisites**

5 changes: 0 additions & 5 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,8 @@ description: AWS Lambda Environment Variables Parser Cookbook

## **The Problem**



## **The Solution**



The GitHub template project can be found at [https://github.com/ran-isenberg/aws-lambda-handler-cookbook](https://github.com/ran-isenberg/aws-lambda-handler-cookbook){:target="_blank" rel="noopener"}.

## **Serverless Best Practices**
Expand All @@ -22,7 +18,6 @@ The AWS Lambda handler will implement multiple best practice utilities.

- [**Environment Variables**](best_practices/environment_variables.md)


## **License**

This library is licensed under the MIT License. See the [LICENSE](https://github.com/ran-isenberg/aws-lambda-env-vars-parser/blob/main/LICENSE) file.
24 changes: 5 additions & 19 deletions lib_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
annotated-types==0.5.0 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
attrs==23.1.0 ; python_full_version >= "3.10.0" and python_version < "4.0"
aws-cdk-asset-awscli-v1==2.2.200 ; python_full_version >= "3.10.0" and python_version < "4.0"
aws-cdk-asset-kubectl-v20==2.1.2 ; python_full_version >= "3.10.0" and python_version < "4.0"
aws-cdk-asset-node-proxy-agent-v5==2.0.165 ; python_full_version >= "3.10.0" and python_version < "4.0"
aws-cdk-aws-lambda-python-alpha==2.87.0a0 ; python_full_version >= "3.10.0" and python_version < "4.0"
aws-cdk-lib==2.87.0 ; python_full_version >= "3.10.0" and python_version < "4.0"
cattrs==23.1.2 ; python_full_version >= "3.10.0" and python_version < "4.0"
cdk-nag==2.27.69 ; python_full_version >= "3.10.0" and python_version < "4.0"
certifi==2023.5.7 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
cfgv==3.3.1 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
charset-normalizer==3.2.0 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
click==8.1.5 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
colorama==0.4.6 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
constructs==10.2.69 ; python_full_version >= "3.10.0" and python_version < "4.0"
coverage[toml]==7.2.7 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
distlib==0.3.6 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
exceptiongroup==1.1.2 ; python_full_version >= "3.10.0" and python_version < "3.11"
Expand All @@ -25,11 +16,9 @@ gitpython==3.1.32 ; python_full_version >= "3.10.0" and python_full_version < "4
identify==2.5.24 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
idna==3.4 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
importlib-metadata==6.8.0 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
importlib-resources==6.0.0 ; python_full_version >= "3.10.0" and python_version < "4.0"
iniconfig==2.0.0 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
isort==5.12.0 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
jinja2==3.1.2 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
jsii==1.84.0 ; python_full_version >= "3.10.0" and python_version < "4.0"
mando==0.6.4 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
markdown==3.3.7 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
markupsafe==2.1.3 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
Expand All @@ -46,7 +35,6 @@ packaging==23.1 ; python_full_version >= "3.10.0" and python_full_version < "4.0
platformdirs==3.8.1 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
pluggy==1.2.0 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
pre-commit==3.3.3 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
publication==0.0.3 ; python_full_version >= "3.10.0" and python_version < "4.0"
py==1.11.0 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
pycodestyle==2.10.0 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
pydantic-core==2.3.0 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
Expand All @@ -59,27 +47,25 @@ pytest-html==3.2.0 ; python_full_version >= "3.10.0" and python_full_version < "
pytest-metadata==3.0.0 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
pytest-mock==3.11.1 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
pytest==7.4.0 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
python-dateutil==2.8.2 ; python_full_version >= "3.10.0" and python_version < "4.0"
python-dateutil==2.8.2 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
python-dotenv==1.0.0 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
pyyaml-env-tag==0.1 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
pyyaml==6.0 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
radon==5.1.0 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
regex==2023.6.3 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
requests==2.31.0 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
service-cdk @ file:///Users/ranisenberg/Programming/aws-lambda-env-vars-parser/cdk ; python_version >= "3.10" and python_full_version < "4.0.0"
setuptools==68.0.0 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
six==1.16.0 ; python_full_version >= "3.10.0" and python_version < "4.0"
six==1.16.0 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
smmap==5.0.0 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
toml==0.10.2 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
tomli==2.0.1 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
typeguard==2.13.3 ; python_full_version >= "3.10.0" and python_version < "4.0"
types-cachetools==5.3.0.5 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
types-requests==2.31.0.1 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
types-urllib3==1.26.25.13 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
typing-extensions==4.7.1 ; python_full_version >= "3.10.0" and python_version < "4.0"
typing-extensions==4.7.1 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
urllib3==2.0.3 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
virtualenv==20.23.1 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
virtualenv==20.24.0 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
watchdog==3.0.0 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
xenon==0.9.0 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
yapf==0.40.1 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
zipp==3.16.1 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
zipp==3.16.2 ; python_full_version >= "3.10.0" and python_full_version < "4.0.0"
Loading