Installations
npm install @pagopa/io-functions-commons
Releases
Release 29.3.0
Published on 21 Nov 2024
Release 29.2.0
Published on 19 Nov 2024
Release 29.1.2
Published on 27 May 2024
Release 29.1.1
Published on 27 May 2024
Release 29.1.0
Published on 22 May 2024
Release 29.0.4
Published on 10 May 2024
Developer
pagopa
Developer Guide
Module System
Unable to determine the module system for this package.
Min. Node Version
Typescript Support
No
Node Version
18.20.5
NPM Version
10.8.2
Statistics
4 Stars
589 Commits
4 Forks
12 Watching
122 Branches
32 Contributors
Updated on 21 Nov 2024
Languages
TypeScript (99.56%)
JavaScript (0.37%)
Handlebars (0.07%)
Total Downloads
Cumulative downloads
Total Downloads
66,043
Last day
-67.3%
16
Compared to previous day
Last week
-5.9%
222
Compared to previous week
Last month
12.1%
1,102
Compared to previous month
Last year
-14.4%
17,436
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
20
Peer Dependencies
4
Dev Dependencies
28
io-functions-commons
Common code used across Azure functions of project IO.
Integration tests
The __integrations__
folder contains a sub-project which uses jest
to execute tests against production-like resources. Such test suites expect resources to be up-and-running and they don't care if they are local or cloud resources.
Run integration tests with local resources
1# run Mailhog, used to simulate an email recipient 2docker run -d -p 1025:1025 -p 8025:8025 --name mailhog mailhog/mailhog 3 4# run a local mock of CosmosDB 5npm install -g @zeit/cosmosdb-server 6nohup cosmosdb-server -p 3000 & 7 8docker run -d --rm -p 10000:10000 mcr.microsoft.com/azure-storage/azurite azurite-blob --blobHost 0.0.0.0 9 10# execute test passing references as env variables 11 12# production STORAGE_CONN_STRING example: 13# STORAGE_CONN_STRING="DefaultEndpointsProtocol=https;AccountName=<NAME>;AccountKey=<BASE64KEY>;EndpointSuffix=core.windows.net" \ 14 15MAILHOG_HOSTNAME=localhost \ 16COSMOSDB_URI=https://localhost:3000/ \ 17COSMOSDB_KEY="dummy key" \ 18COSMOSDB_DATABASE_NAME=integration-tests \ 19STORAGE_CONN_STRING="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;" \ 20yarn test:integration
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
all dependencies are pinned
Details
- Info: 4 out of 4 third-party GitHubAction dependencies pinned
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
SAST tool is not run on all commits -- score normalized to 9
Details
- Warn: 14 commits out of 15 are checked with a SAST tool
Reason
Found 14/30 approved changesets -- score normalized to 4
Reason
4 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 3
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/pr-title-linter-and-linker.yaml:1
- Info: no jobLevel write permissions found
Reason
dangerous workflow patterns detected
Details
- Warn: script injection with untrusted input ' github.event.pull_request.title ': .github/workflows/pr-title-linter-and-linker.yaml:35
- Warn: script injection with untrusted input ' github.event.pull_request.title ': .github/workflows/pr-title-linter-and-linker.yaml:80
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
31 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc
- Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg
- Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p
- Warn: Project is vulnerable to: GHSA-pfq8-rq6v-vf5m
- Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22
- Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp
- Warn: Project is vulnerable to: GHSA-896r-f27r-55mw
- Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695
- Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm
- Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574
- Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm
- Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9
- Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm
- Warn: Project is vulnerable to: GHSA-hxm2-r34f-qmc5
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-x77j-w7wf-fjmw
- Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6
- Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
- Warn: Project is vulnerable to: GHSA-w5p7-h5w8-2hfq
- Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7
- Warn: Project is vulnerable to: GHSA-776f-qx25-q3cc
Score
3.4
/10
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More