mirror of
https://github.com/codecov/codecov-action.git
synced 2025-12-08 16:16:24 +00:00
Compare commits
82 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
894ff025c7 | ||
|
|
f539f977d5 | ||
|
|
6757614f24 | ||
|
|
cdee249da5 | ||
|
|
ce548e935a | ||
|
|
40a12dcee2 | ||
|
|
030a000ec6 | ||
|
|
91e184765d | ||
|
|
cc7fb3f71c | ||
|
|
fee48966e2 | ||
|
|
ddd8c1b461 | ||
|
|
76e2f5265e | ||
|
|
9b87723d6a | ||
|
|
13d8b070d5 | ||
|
|
4b062cb89c | ||
|
|
61ac410891 | ||
|
|
927bc26587 | ||
|
|
ce0bcc6545 | ||
|
|
48f9a51f89 | ||
|
|
83bb3d0210 | ||
|
|
e3c8ffd812 | ||
|
|
704d393840 | ||
|
|
742000aae0 | ||
|
|
8b063424e4 | ||
|
|
842e0917ee | ||
|
|
a0f542a57e | ||
|
|
d660f23757 | ||
|
|
4eab105708 | ||
|
|
5e7b9c90d0 | ||
|
|
e418d185b8 | ||
|
|
0a0c29f6e1 | ||
|
|
a622646a2c | ||
|
|
644e02d3c9 | ||
|
|
f480a52db5 | ||
|
|
e0fbd592d3 | ||
|
|
d9f34f8cd5 | ||
|
|
0e9e7b4e8a | ||
|
|
7f20bd4c41 | ||
|
|
13bc2536ab | ||
|
|
5c0da1b28f | ||
|
|
68d5f6d0be | ||
|
|
2a829b95de | ||
|
|
8e09eaf1b4 | ||
|
|
39e222921f | ||
|
|
b2b7703473 | ||
|
|
6f4f74dd60 | ||
|
|
3dbd745e61 | ||
|
|
76f0319234 | ||
|
|
3b97abb4e5 | ||
|
|
dd819f8a8a | ||
|
|
963c54109b | ||
|
|
95faa5a026 | ||
|
|
a2d3766e60 | ||
|
|
f62b75a7da | ||
|
|
6d96cd710b | ||
|
|
4d5e2702f8 | ||
|
|
0c0df47689 | ||
|
|
93e388beec | ||
|
|
721720f939 | ||
|
|
8eb06817e2 | ||
|
|
e12c307842 | ||
|
|
0fb8cc0045 | ||
|
|
17d5f7fd73 | ||
|
|
2037dcb530 | ||
|
|
f68665b473 | ||
|
|
eab630b0a5 | ||
|
|
b7d228a249 | ||
|
|
5cf08ddf91 | ||
|
|
cbf117b92b | ||
|
|
79227c8a3e | ||
|
|
a51f451c4d | ||
|
|
c99c922c5e | ||
|
|
3a932f30ee | ||
|
|
fe1c74e432 | ||
|
|
a4b66e8ccb | ||
|
|
5b0152ad71 | ||
|
|
34e7489f32 | ||
|
|
d633e271ad | ||
|
|
22ec2ddfa5 | ||
|
|
53cfbc752e | ||
|
|
3568e51c1c | ||
|
|
d964f8d698 |
69
.github/workflows/codeql-analysis.yml
vendored
Normal file
69
.github/workflows/codeql-analysis.yml
vendored
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
|
||||||
|
#
|
||||||
|
# You may wish to alter this file to override the set of languages analyzed,
|
||||||
|
# or to provide custom queries or build logic.
|
||||||
|
#
|
||||||
|
# ******** NOTE ********
|
||||||
|
# We have attempted to detect the languages in your repository. Please check
|
||||||
|
# the `language` matrix defined below to confirm you have the correct set of
|
||||||
|
# supported CodeQL languages.
|
||||||
|
#
|
||||||
|
name: "CodeQL"
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
pull_request:
|
||||||
|
# The branches below must be a subset of the branches above
|
||||||
|
branches: [ master ]
|
||||||
|
schedule:
|
||||||
|
- cron: '24 6 * * 5'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
analyze:
|
||||||
|
name: Analyze
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
actions: read
|
||||||
|
contents: read
|
||||||
|
security-events: write
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
language: [ 'javascript' ]
|
||||||
|
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
|
||||||
|
# Learn more about CodeQL language support at https://git.io/codeql-language-support
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
# Initializes the CodeQL tools for scanning.
|
||||||
|
- name: Initialize CodeQL
|
||||||
|
uses: github/codeql-action/init@v2
|
||||||
|
with:
|
||||||
|
languages: ${{ matrix.language }}
|
||||||
|
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||||
|
# By default, queries listed here will override any specified in a config file.
|
||||||
|
# Prefix the list here with "+" to use these queries and those in the config file.
|
||||||
|
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
||||||
|
|
||||||
|
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||||
|
# If this step fails, then you should remove it and run the build manually (see below)
|
||||||
|
- name: Autobuild
|
||||||
|
uses: github/codeql-action/autobuild@v2
|
||||||
|
|
||||||
|
# ℹ️ Command-line programs to run using the OS shell.
|
||||||
|
# 📚 https://git.io/JvXDl
|
||||||
|
|
||||||
|
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
||||||
|
# and modify them (or add more) to build your code if your project
|
||||||
|
# uses a compiled language
|
||||||
|
|
||||||
|
#- run: |
|
||||||
|
# make bootstrap
|
||||||
|
# make release
|
||||||
|
|
||||||
|
- name: Perform CodeQL Analysis
|
||||||
|
uses: github/codeql-action/analyze@v2
|
||||||
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
@@ -15,6 +15,7 @@ jobs:
|
|||||||
files: ./coverage/script/coverage-final.json
|
files: ./coverage/script/coverage-final.json
|
||||||
flags: script,${{ matrix.os }}
|
flags: script,${{ matrix.os }}
|
||||||
name: codecov-script
|
name: codecov-script
|
||||||
|
verbose: true
|
||||||
- name: Upload coverage to Codecov (demo)
|
- name: Upload coverage to Codecov (demo)
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
@@ -22,6 +23,7 @@ jobs:
|
|||||||
file: ./coverage/coverage-final.json
|
file: ./coverage/coverage-final.json
|
||||||
flags: demo,${{ matrix.os }}
|
flags: demo,${{ matrix.os }}
|
||||||
name: codecov-demo
|
name: codecov-demo
|
||||||
|
verbose: true
|
||||||
- name: Upload coverage to Codecov (version)
|
- name: Upload coverage to Codecov (version)
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
@@ -30,6 +32,7 @@ jobs:
|
|||||||
flags: version,${{ matrix.os }}
|
flags: version,${{ matrix.os }}
|
||||||
name: codecov-version
|
name: codecov-version
|
||||||
version: v0.1.0_8880
|
version: v0.1.0_8880
|
||||||
|
verbose: true
|
||||||
run:
|
run:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
@@ -50,6 +53,7 @@ jobs:
|
|||||||
files: ./coverage/script/coverage-final.json
|
files: ./coverage/script/coverage-final.json
|
||||||
flags: script,${{ matrix.os }}
|
flags: script,${{ matrix.os }}
|
||||||
name: codecov-script
|
name: codecov-script
|
||||||
|
verbose: true
|
||||||
- name: Upload coverage to Codecov (demo)
|
- name: Upload coverage to Codecov (demo)
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
@@ -57,6 +61,7 @@ jobs:
|
|||||||
file: ./coverage/coverage-final.json
|
file: ./coverage/coverage-final.json
|
||||||
flags: demo,${{ matrix.os }}
|
flags: demo,${{ matrix.os }}
|
||||||
name: codecov-demo
|
name: codecov-demo
|
||||||
|
verbose: true
|
||||||
- name: Upload coverage to Codecov (version)
|
- name: Upload coverage to Codecov (version)
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
@@ -65,3 +70,4 @@ jobs:
|
|||||||
flags: version,${{ matrix.os }}
|
flags: version,${{ matrix.os }}
|
||||||
name: codecov-version
|
name: codecov-version
|
||||||
version: v0.1.0_8880
|
version: v0.1.0_8880
|
||||||
|
verbose: true
|
||||||
|
|||||||
61
.github/workflows/scorecards-analysis.yml
vendored
Normal file
61
.github/workflows/scorecards-analysis.yml
vendored
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
name: Scorecards supply-chain security
|
||||||
|
on:
|
||||||
|
# Only the default branch is supported.
|
||||||
|
branch_protection_rule:
|
||||||
|
schedule:
|
||||||
|
- cron: '43 20 * * 1'
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
|
||||||
|
# Declare default permissions as read only.
|
||||||
|
permissions: read-all
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
analysis:
|
||||||
|
name: Scorecards analysis
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
# Needed to upload the results to code-scanning dashboard.
|
||||||
|
security-events: write
|
||||||
|
# Used to receive a badge. (Upcoming feature)
|
||||||
|
id-token: write
|
||||||
|
actions: read
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: "Checkout code"
|
||||||
|
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3.0.0
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
|
- name: "Run analysis"
|
||||||
|
uses: ossf/scorecard-action@80e868c13c90f172d68d1f4501dee99e2479f7af # v2.1.3
|
||||||
|
with:
|
||||||
|
results_file: results.sarif
|
||||||
|
results_format: sarif
|
||||||
|
# (Optional) Read-only PAT token. Uncomment the `repo_token` line below if:
|
||||||
|
# - you want to enable the Branch-Protection check on a *public* repository, or
|
||||||
|
# - you are installing Scorecards on a *private* repository
|
||||||
|
# To create the PAT, follow the steps in https://github.com/ossf/scorecard-action#authentication-with-pat.
|
||||||
|
# repo_token: ${{ secrets.SCORECARD_READ_TOKEN }}
|
||||||
|
|
||||||
|
# Publish the results for public repositories to enable scorecard badges. For more details, see
|
||||||
|
# https://github.com/ossf/scorecard-action#publishing-results.
|
||||||
|
# For private repositories, `publish_results` will automatically be set to `false`, regardless
|
||||||
|
# of the value entered here.
|
||||||
|
publish_results: true
|
||||||
|
|
||||||
|
# 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@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
||||||
|
with:
|
||||||
|
name: SARIF file
|
||||||
|
path: results.sarif
|
||||||
|
retention-days: 5
|
||||||
|
|
||||||
|
# Upload the results to GitHub's code scanning dashboard.
|
||||||
|
- name: "Upload to code-scanning"
|
||||||
|
uses: github/codeql-action/upload-sarif@5f532563584d71fdef14ee64d17bafb34f751ce5 # v1.0.26
|
||||||
|
with:
|
||||||
|
sarif_file: results.sarif
|
||||||
81
CHANGELOG.md
81
CHANGELOG.md
@@ -1,3 +1,84 @@
|
|||||||
|
## 3.1.3
|
||||||
|
### Fixes
|
||||||
|
- #960 fix: allow for aarch64 build
|
||||||
|
|
||||||
|
### Dependencies
|
||||||
|
- #957 build(deps-dev): bump jest-junit from 15.0.0 to 16.0.0
|
||||||
|
- #958 build(deps): bump openpgp from 5.7.0 to 5.8.0
|
||||||
|
- #959 build(deps-dev): bump @types/node from 18.15.10 to 18.15.12
|
||||||
|
|
||||||
|
## 3.1.2
|
||||||
|
### Fixes
|
||||||
|
- #718 Update README.md
|
||||||
|
- #851 Remove unsupported path_to_write_report argument
|
||||||
|
- #898 codeql-analysis.yml
|
||||||
|
- #901 Update README to contain correct information - inputs and negate feature
|
||||||
|
- #955 fix: add in all the extra arguments for uploader
|
||||||
|
|
||||||
|
### Dependencies
|
||||||
|
- #819 build(deps): bump openpgp from 5.4.0 to 5.5.0
|
||||||
|
- #835 build(deps): bump node-fetch from 3.2.4 to 3.2.10
|
||||||
|
- #840 build(deps): bump ossf/scorecard-action from 1.1.1 to 2.0.4
|
||||||
|
- #841 build(deps): bump @actions/core from 1.9.1 to 1.10.0
|
||||||
|
- #843 build(deps): bump @actions/github from 5.0.3 to 5.1.1
|
||||||
|
- #869 build(deps): bump node-fetch from 3.2.10 to 3.3.0
|
||||||
|
- #872 build(deps-dev): bump jest-junit from 13.2.0 to 15.0.0
|
||||||
|
- #879 build(deps): bump decode-uri-component from 0.2.0 to 0.2.2
|
||||||
|
- #889 build(deps): bump ossf/scorecard-action from 1.1.1 to 2.1.2
|
||||||
|
- #895 build(deps): bump json5 from 2.2.1 to 2.2.3
|
||||||
|
- #896 build(deps): bump actions/upload-artifact from 3.1.0 to 3.1.2
|
||||||
|
- #900 build(deps-dev): bump @vercel/ncc from 0.34.0 to 0.36.1
|
||||||
|
- #905 build(deps-dev): bump typescript from 4.7.4 to 4.9.5
|
||||||
|
- #911 build(deps-dev): bump @types/node from 16.11.40 to 18.13.0
|
||||||
|
- #922 build(deps-dev): bump @types/node from 18.13.0 to 18.14.0
|
||||||
|
- #924 build(deps): bump openpgp from 5.5.0 to 5.7.0
|
||||||
|
- #927 build(deps-dev): bump @types/node from 18.14.0 to 18.14.2
|
||||||
|
- #933 build(deps-dev): bump @types/node from 18.14.2 to 18.14.6
|
||||||
|
- #937 build(deps-dev): bump @types/node from 18.14.6 to 18.15.0
|
||||||
|
- #938 build(deps): bump node-fetch from 3.3.0 to 3.3.1
|
||||||
|
- #945 build(deps-dev): bump @types/node from 18.15.0 to 18.15.5
|
||||||
|
- #946 build(deps-dev): bump @types/node from 18.15.5 to 18.15.6
|
||||||
|
- #947 build(deps-dev): bump @types/node from 18.15.6 to 18.15.10
|
||||||
|
- #951 build(deps): bump ossf/scorecard-action from 2.1.2 to 2.1.3
|
||||||
|
|
||||||
|
## 3.1.1
|
||||||
|
### Fixes
|
||||||
|
- #661 Update deprecation warning
|
||||||
|
- #593 Create codeql-analysis.yml
|
||||||
|
- #712 README: fix typo
|
||||||
|
- #725 fix: Remove a blank row
|
||||||
|
- #726 Update README.md with correct badge version
|
||||||
|
- #633 Create scorecards-analysis.yml
|
||||||
|
- #747 fix: add more verbosity to validation
|
||||||
|
- #750 Regenerate scorecards-analysis.yml
|
||||||
|
- #774 Switch to v3
|
||||||
|
- #783 Fix network entry in table
|
||||||
|
- #791 Trim arguments after splitting them
|
||||||
|
- #769 Plumb failCi into verification function.
|
||||||
|
|
||||||
|
### Dependencies
|
||||||
|
- #713 build(deps-dev): bump typescript from 4.6.3 to 4.6.4
|
||||||
|
- #714 build(deps): bump node-fetch from 3.2.3 to 3.2.4
|
||||||
|
- #724 build(deps): bump github/codeql-action from 1 to 2
|
||||||
|
- #717 build(deps-dev): bump @types/jest from 27.4.1 to 27.5.0
|
||||||
|
- #729 build(deps-dev): bump @types/node from 17.0.25 to 17.0.33
|
||||||
|
- #734 build(deps-dev): downgrade @types/node to 16.11.35
|
||||||
|
- #723 build(deps): bump actions/checkout from 2 to 3
|
||||||
|
- #733 build(deps): bump @actions/github from 5.0.1 to 5.0.3
|
||||||
|
- #732 build(deps): bump @actions/core from 1.6.0 to 1.8.2
|
||||||
|
- #737 build(deps-dev): bump @types/node from 16.11.35 to 16.11.36
|
||||||
|
- #749 build(deps): bump ossf/scorecard-action from 1.0.1 to 1.1.0
|
||||||
|
- #755 build(deps-dev): bump typescript from 4.6.4 to 4.7.3
|
||||||
|
- #759 build(deps-dev): bump @types/node from 16.11.36 to 16.11.39
|
||||||
|
- #762 build(deps-dev): bump @types/node from 16.11.39 to 16.11.40
|
||||||
|
- #746 build(deps-dev): bump @vercel/ncc from 0.33.4 to 0.34.0
|
||||||
|
- #757 build(deps): bump ossf/scorecard-action from 1.1.0 to 1.1.1
|
||||||
|
- #760 build(deps): bump openpgp from 5.2.1 to 5.3.0
|
||||||
|
- #748 build(deps): bump actions/upload-artifact from 2.3.1 to 3.1.0
|
||||||
|
- #766 build(deps-dev): bump typescript from 4.7.3 to 4.7.4
|
||||||
|
- #799 build(deps): bump openpgp from 5.3.0 to 5.4.0
|
||||||
|
- #798 build(deps): bump @actions/core from 1.8.2 to 1.9.1
|
||||||
|
|
||||||
## 3.1.0
|
## 3.1.0
|
||||||
### Features
|
### Features
|
||||||
- #699 Incorporate `xcode` arguments for the Codecov uploader
|
- #699 Incorporate `xcode` arguments for the Codecov uploader
|
||||||
|
|||||||
59
README.md
59
README.md
@@ -1,30 +1,30 @@
|
|||||||
# Codecov GitHub Action
|
# Codecov GitHub Action
|
||||||
|
|
||||||
[](https://github.com/marketplace/actions/codecov)
|
[](https://github.com/marketplace/actions/codecov)
|
||||||
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fcodecov%2Fcodecov-action?ref=badge_shield)
|
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fcodecov%2Fcodecov-action?ref=badge_shield)
|
||||||
[](https://github.com/codecov/codecov-action/actions/workflows/main.yml)
|
[](https://github.com/codecov/codecov-action/actions/workflows/main.yml)
|
||||||
### Easily upload coverage reports to Codecov from GitHub Actions
|
### Easily upload coverage reports to Codecov from GitHub Actions
|
||||||
|
|
||||||
>The latest release of this Action adds support for tokenless uploads from GitHub Actions!
|
>The latest release of this Action adds support for tokenless uploads from GitHub Actions!
|
||||||
|
|
||||||
## ⚠️ Deprecration of v1
|
## ⚠️ Deprecation of v1
|
||||||
**On February 1, 2022, this version will be fully sunset and no longer function**
|
**As of February 1, 2022, v1 has been fully sunset and no longer functions**
|
||||||
|
|
||||||
Due to the [deprecation](https://about.codecov.io/blog/introducing-codecovs-new-uploader/) of the underlying bash uploader,
|
Due to the [deprecation](https://about.codecov.io/blog/introducing-codecovs-new-uploader/) of the underlying bash uploader,
|
||||||
the Codecov GitHub Action has released `v2` which will use the new [uploader](https://github.com/codecov/uploader). You can learn
|
the Codecov GitHub Action has released `v2`/`v3` which will use the new [uploader](https://github.com/codecov/uploader). You can learn
|
||||||
more about our deprecation plan and the new uploader on our [blog](https://about.codecov.io/blog/introducing-codecovs-new-uploader/).
|
more about our deprecation plan and the new uploader on our [blog](https://about.codecov.io/blog/introducing-codecovs-new-uploader/).
|
||||||
|
|
||||||
We will be restricting any updates to the `v1` Action to security updates and hotfixes.
|
We will be restricting any updates to the `v1` Action to security updates and hotfixes.
|
||||||
|
|
||||||
### Migration from `v1` to `v2`
|
### Migration from `v1` to `v3`
|
||||||
The `v2` uploader has a few breaking changes for users
|
The `v3` uploader has a few breaking changes for users
|
||||||
- Multiple fields have not been transferred from the bash uploader or have been deprecated. Notably
|
- Multiple fields have not been transferred from the bash uploader or have been deprecated. Notably
|
||||||
many of the `functionalities` and `gcov_` arguments have been removed. Please check the documentation
|
many of the `functionalities` and `gcov_` arguments have been removed. Please check the documentation
|
||||||
below for the full list.
|
below for the full list.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
To integrate Codecov with your Actions pipeline, specify the name of this repository with a tag number (`@v2` is recommended) as a `step` within your `workflow.yml` file.
|
To integrate Codecov with your Actions pipeline, specify the name of this repository with a tag number (`@v3` is recommended) as a `step` within your `workflow.yml` file.
|
||||||
|
|
||||||
If you have a *private repository*, this Action also requires you to [provide an upload token](https://docs.codecov.io/docs/frequently-asked-questions#section-where-is-the-repository-upload-token-found-) from [codecov.io](https://www.codecov.io) (tip: in order to avoid exposing your token, store it as a `secret`). Optionally, you can choose to include up to four additional inputs to customize the upload context. **For public repositories, no token is needed**
|
If you have a *private repository*, this Action also requires you to [provide an upload token](https://docs.codecov.io/docs/frequently-asked-questions#section-where-is-the-repository-upload-token-found-) from [codecov.io](https://www.codecov.io) (tip: in order to avoid exposing your token, store it as a `secret`). Optionally, you can choose to include up to four additional inputs to customize the upload context. **For public repositories, no token is needed**
|
||||||
|
|
||||||
@@ -33,9 +33,9 @@ Inside your `.github/workflows/workflow.yml` file:
|
|||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
- uses: codecov/codecov-action@v2
|
- uses: codecov/codecov-action@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
files: ./coverage1.xml,./coverage2.xml # optional
|
files: ./coverage1.xml,./coverage2.xml # optional
|
||||||
flags: unittests # optional
|
flags: unittests # optional
|
||||||
name: codecov-umbrella # optional
|
name: codecov-umbrella # optional
|
||||||
@@ -46,41 +46,47 @@ steps:
|
|||||||
|
|
||||||
## Arguments
|
## Arguments
|
||||||
|
|
||||||
Codecov's Action currently supports five inputs from the user: `token`, `file`, `flags`,`name`, and `fail_ci_if_error`. These inputs, along with their descriptions and usage contexts, are listed in the table below:
|
Codecov's Action supports inputs from the user. These inputs, along with their descriptions and usage contexts, are listed in the table below:
|
||||||
|
|
||||||
| Input | Description | Usage |
|
| Input | Description | Usage |
|
||||||
| :---: | :---: | :---: |
|
| :---: | :---: | :---: |
|
||||||
| `token` | Used to authorize coverage report uploads | *Required for private repos* |
|
| `token` | Used to authorize coverage report uploads | *Required |
|
||||||
| `files` | Comma-separated paths to the coverage report(s) | Optional
|
| `move_coverage_to_trash` | Move discovered coverage reports to the trash | Optional
|
||||||
| `directory` | Directory to search for coverage reports. | Optional
|
|
||||||
| `dry_run` | Don't upload files to Codecov | Optional
|
|
||||||
| `flags` | Flag the upload to group coverage metrics (unittests, uitests, etc.). Multiple flags are separated by a comma (ui,chrome) | Optional
|
|
||||||
| | |
|
|
||||||
| `commit_parent` | The commit SHA of the parent for which you are uploading coverage. If not present, the parent will be determined using the API of your repository provider. When using the repository provider's API, the parent is determined via finding the closest ancestor to the commit. | Optional
|
| `commit_parent` | The commit SHA of the parent for which you are uploading coverage. If not present, the parent will be determined using the API of your repository provider. When using the repository provider's API, the parent is determined via finding the closest ancestor to the commit. | Optional
|
||||||
|
| `dry_run` | Don't upload files to Codecov | Optional
|
||||||
| `env_vars` | Environment variables to tag the upload with. Multiple env variables can be separated with commas (e.g. `OS,PYTHON`) | Optional
|
| `env_vars` | Environment variables to tag the upload with. Multiple env variables can be separated with commas (e.g. `OS,PYTHON`) | Optional
|
||||||
| `fail_ci_if_error` | Specify if CI pipeline should fail when Codecov runs into errors during upload. *Defaults to **false*** | Optional
|
| `fail_ci_if_error` | Specify if CI pipeline should fail when Codecov runs into errors during upload. *Defaults to **false*** | Optional
|
||||||
|
| `files` | Comma-separated paths to the coverage report(s). Negated paths are supported by starting with `!` | Optional
|
||||||
|
| `flags` | Flag the upload to group coverage metrics (unittests, uitests, etc.). Multiple flags are separated by a comma (ui,chrome) | Optional
|
||||||
|
| `full_report` | Specify the path of a full Codecov report to re-upload | Optional
|
||||||
| `functionalities` | Toggle functionalities | Optional
|
| `functionalities` | Toggle functionalities | Optional
|
||||||
| | `network` Disable uploading the file network |
|
| -- `network` | Disable uploading the file network | Optional
|
||||||
|
| -- `fixes` | Enable file fixes to ignore common lines from coverage | Optional
|
||||||
|
| -- `search` | Disable searching for coverage files | Optional
|
||||||
| `gcov` | Run with gcov support | Optional
|
| `gcov` | Run with gcov support | Optional
|
||||||
| `gcov_args` | Extra arguments to pass to gcov | Optional
|
| `gcov_args` | Extra arguments to pass to gcov | Optional
|
||||||
| `gcov_ignore` | Paths to ignore during gcov gathering | Optional
|
| `gcov_ignore` | Paths to ignore during gcov gathering | Optional
|
||||||
| `gcov_include` | Paths to include during gcov gathering | Optional
|
| `gcov_include` | Paths to include during gcov gathering | Optional
|
||||||
| `move_coverage_to_trash` | Move discovered coverage reports to the trash | Optional
|
| `gcov_executable` | gcov executable to run. Defaults to gcov. | Optional
|
||||||
| `name` | Custom defined name for the upload | Optional
|
| `name` | Custom defined name for the upload | Optional
|
||||||
|
| `network_filer` | Specify a filter on the files listed in the network section of the Codecov report. Useful for upload-specific path fixing | Optional
|
||||||
|
| `network_prefix` | Specify a prefix on files listed in the network section of the Codecov report. Useful to help resolve path fixing | Optional
|
||||||
|
| `os` | Specify the OS (linux, macos, windows, alpine) | Optional
|
||||||
| `override_branch` | Specify the branch name | Optional
|
| `override_branch` | Specify the branch name | Optional
|
||||||
| `override_build` | Specify the build number | Optional
|
| `override_build` | Specify the build number | Optional
|
||||||
| `override_commit` | Specify the commit SHA | Optional
|
| `override_commit` | Specify the commit SHA | Optional
|
||||||
| `override_pr` | Specify the pull request number | Optional
|
| `override_pr` | Specify the pull request number | Optional
|
||||||
| `override_tag` | Specify the git tag | Optional
|
| `override_tag` | Specify the git tag | Optional
|
||||||
| `path_to_write_report` | Write upload file to path before uploading | Optional
|
|
||||||
| `root_dir` | Used when not in git/hg project to identify project root directory | Optional
|
| `root_dir` | Used when not in git/hg project to identify project root directory | Optional
|
||||||
|
| `directory` | Directory to search for coverage reports. | Optional
|
||||||
| `slug` | Specify the slug manually (Enterprise use) | Optional
|
| `slug` | Specify the slug manually (Enterprise use) | Optional
|
||||||
|
| `swift` | Run with swift coverage support | Optional
|
||||||
|
| -- `swift_project` | Specify the swift project to speed up coverage conversion | Optional
|
||||||
|
| `upstream_proxy` | The upstream http proxy server to connect through | Optional
|
||||||
| `url` | Change the upload host (Enterprise use) | Optional
|
| `url` | Change the upload host (Enterprise use) | Optional
|
||||||
| `verbose` | Specify whether the Codecov output should be verbose | Optional
|
| `verbose` | Specify whether the Codecov output should be verbose | Optional
|
||||||
| `version` | Specify which version of the Codecov Uploader should be used. Defaults to `latest` | Optional
|
| `version` | Specify which version of the Codecov Uploader should be used. Defaults to `latest` | Optional
|
||||||
| `working-directory` | Directory in which to execute `codecov.sh` | Optional
|
| `xtra_args` | Add additional uploader args that may be missing in the Action | Optional
|
||||||
| `xcode` | Run with xcode support | Optional
|
|
||||||
| `xcode_archive_path` | Specify the xcode archive path. Likely specified as the -resultBundlePath and should end in .xcresult | Optional
|
|
||||||
|
|
||||||
|
|
||||||
### Example `workflow.yml` with Codecov Action
|
### Example `workflow.yml` with Codecov Action
|
||||||
@@ -96,29 +102,28 @@ jobs:
|
|||||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
env:
|
env:
|
||||||
OS: ${{ matrix.os }}
|
OS: ${{ matrix.os }}
|
||||||
PYTHON: '3.7'
|
PYTHON: '3.10'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@master
|
uses: actions/setup-python@master
|
||||||
with:
|
with:
|
||||||
python-version: 3.7
|
python-version: 3.10
|
||||||
- name: Generate coverage report
|
- name: Generate coverage report
|
||||||
run: |
|
run: |
|
||||||
pip install pytest
|
pip install pytest
|
||||||
pip install pytest-cov
|
pip install pytest-cov
|
||||||
pytest --cov=./ --cov-report=xml
|
pytest --cov=./ --cov-report=xml
|
||||||
- name: Upload coverage to Codecov
|
- name: Upload coverage to Codecov
|
||||||
uses: codecov/codecov-action@v2
|
uses: codecov/codecov-action@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
directory: ./coverage/reports/
|
directory: ./coverage/reports/
|
||||||
env_vars: OS,PYTHON
|
env_vars: OS,PYTHON
|
||||||
fail_ci_if_error: true
|
fail_ci_if_error: true
|
||||||
files: ./coverage1.xml,./coverage2.xml
|
files: ./coverage1.xml,./coverage2.xml,!./cache
|
||||||
flags: unittests
|
flags: unittests
|
||||||
name: codecov-umbrella
|
name: codecov-umbrella
|
||||||
path_to_write_report: ./coverage/codecov_report.txt
|
|
||||||
verbose: true
|
verbose: true
|
||||||
```
|
```
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|||||||
41
action.yml
41
action.yml
@@ -5,6 +5,9 @@ inputs:
|
|||||||
token:
|
token:
|
||||||
description: 'Repository upload token - get it from codecov.io. Required only for private repositories'
|
description: 'Repository upload token - get it from codecov.io. Required only for private repositories'
|
||||||
required: false
|
required: false
|
||||||
|
file:
|
||||||
|
description: 'Path to coverage file to upload'
|
||||||
|
required: false
|
||||||
files:
|
files:
|
||||||
description: 'Comma-separated list of files to upload'
|
description: 'Comma-separated list of files to upload'
|
||||||
required: false
|
required: false
|
||||||
@@ -14,6 +17,9 @@ inputs:
|
|||||||
flags:
|
flags:
|
||||||
description: 'Flag upload to group coverage metrics (e.g. unittests | integration | ui,chrome)'
|
description: 'Flag upload to group coverage metrics (e.g. unittests | integration | ui,chrome)'
|
||||||
required: false
|
required: false
|
||||||
|
full_report:
|
||||||
|
description: Specify the path of a full Codecov report to re-upload
|
||||||
|
required: false
|
||||||
commit_parent:
|
commit_parent:
|
||||||
description: 'The commit SHA of the parent for which you are uploading coverage. If not present, the parent will be determined using the API of your repository provider. When using the repository providers API, the parent is determined via finding the closest ancestor to the commit.'
|
description: 'The commit SHA of the parent for which you are uploading coverage. If not present, the parent will be determined using the API of your repository provider. When using the repository providers API, the parent is determined via finding the closest ancestor to the commit.'
|
||||||
required: false
|
required: false
|
||||||
@@ -26,11 +32,8 @@ inputs:
|
|||||||
fail_ci_if_error:
|
fail_ci_if_error:
|
||||||
description: 'Specify whether or not CI build should fail if Codecov runs into an error during upload'
|
description: 'Specify whether or not CI build should fail if Codecov runs into an error during upload'
|
||||||
required: false
|
required: false
|
||||||
file:
|
|
||||||
description: 'Path to coverage file to upload'
|
|
||||||
required: false
|
|
||||||
functionalities:
|
functionalities:
|
||||||
description: 'Comma-separated list, see the README for options and their usage'
|
description: 'Comma-separated list, see the README for options and their usage. Options include `network`, `fixes`, `search`.'
|
||||||
required: false
|
required: false
|
||||||
gcov:
|
gcov:
|
||||||
description: 'Run with gcov support'
|
description: 'Run with gcov support'
|
||||||
@@ -38,6 +41,9 @@ inputs:
|
|||||||
gcov_args:
|
gcov_args:
|
||||||
description: 'Extra arguments to pass to gcov'
|
description: 'Extra arguments to pass to gcov'
|
||||||
required: false
|
required: false
|
||||||
|
gcov_executable:
|
||||||
|
description: 'gcov executable to run. Defaults to gcov'
|
||||||
|
required: false
|
||||||
gcov_ignore:
|
gcov_ignore:
|
||||||
description: 'Paths to ignore during gcov gathering'
|
description: 'Paths to ignore during gcov gathering'
|
||||||
required: false
|
required: false
|
||||||
@@ -50,6 +56,15 @@ inputs:
|
|||||||
name:
|
name:
|
||||||
description: 'User defined upload name. Visible in Codecov UI'
|
description: 'User defined upload name. Visible in Codecov UI'
|
||||||
required: false
|
required: false
|
||||||
|
network_filter:
|
||||||
|
description: 'Specify a filter on the files listed in the network section of the Codecov report. Useful for upload-specific path fixing'
|
||||||
|
required: false
|
||||||
|
network_prefix:
|
||||||
|
description: 'Specify a prefix on files listed in the network section of the Codecov report. Useful to help resolve path fixing'
|
||||||
|
required: false
|
||||||
|
os:
|
||||||
|
description: 'Override the assumed OS. Options are aarch64 | alpine | linux | macos | windows.'
|
||||||
|
required: false
|
||||||
override_branch:
|
override_branch:
|
||||||
description: 'Specify the branch name'
|
description: 'Specify the branch name'
|
||||||
required: false
|
required: false
|
||||||
@@ -65,15 +80,21 @@ inputs:
|
|||||||
override_tag:
|
override_tag:
|
||||||
description: 'Specify the git tag'
|
description: 'Specify the git tag'
|
||||||
required: false
|
required: false
|
||||||
os:
|
|
||||||
description: 'Override the assumed OS. Options are alpine | linux | macos | windows.'
|
|
||||||
required: false
|
|
||||||
root_dir:
|
root_dir:
|
||||||
description: 'Used when not in git/hg project to identify project root directory'
|
description: 'Used when not in git/hg project to identify project root directory'
|
||||||
required: false
|
required: false
|
||||||
slug:
|
slug:
|
||||||
description: 'Specify the slug manually (Enterprise use)'
|
description: 'Specify the slug manually (Enterprise use)'
|
||||||
required: false
|
required: false
|
||||||
|
swift:
|
||||||
|
description: 'Run with swift coverage support'
|
||||||
|
required: false
|
||||||
|
swift_project:
|
||||||
|
description: 'Specify the swift project to speed up coverage conversion'
|
||||||
|
required: false
|
||||||
|
upstream_proxy:
|
||||||
|
description: 'The upstream http proxy server to connect through'
|
||||||
|
required: false
|
||||||
url:
|
url:
|
||||||
description: 'Change the upload host (Enterprise use)'
|
description: 'Change the upload host (Enterprise use)'
|
||||||
required: false
|
required: false
|
||||||
@@ -83,15 +104,15 @@ inputs:
|
|||||||
version:
|
version:
|
||||||
description: 'Specify which version of the Codecov Uploader should be used. Defaults to `latest`'
|
description: 'Specify which version of the Codecov Uploader should be used. Defaults to `latest`'
|
||||||
required: false
|
required: false
|
||||||
working-directory:
|
|
||||||
description: 'Directory in which to execute codecov.sh'
|
|
||||||
required: false
|
|
||||||
xcode:
|
xcode:
|
||||||
description: 'Run with xcode support'
|
description: 'Run with xcode support'
|
||||||
required: false
|
required: false
|
||||||
xcode_archive_path:
|
xcode_archive_path:
|
||||||
description: 'Specify the xcode archive path. Likely specified as the -resultBundlePath and should end in .xcresult'
|
description: 'Specify the xcode archive path. Likely specified as the -resultBundlePath and should end in .xcresult'
|
||||||
required: false
|
required: false
|
||||||
|
xtra_args:
|
||||||
|
description: 'Add additional uploader args that may be missing in the Action'
|
||||||
|
required: false
|
||||||
branding:
|
branding:
|
||||||
color: 'red'
|
color: 'red'
|
||||||
icon: 'umbrella'
|
icon: 'umbrella'
|
||||||
|
|||||||
7270
dist/index.js
vendored
Normal file → Executable file
7270
dist/index.js
vendored
Normal file → Executable file
File diff suppressed because one or more lines are too long
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
208
package-lock.json
generated
208
package-lock.json
generated
@@ -1,40 +1,49 @@
|
|||||||
{
|
{
|
||||||
"name": "codecov-action",
|
"name": "codecov-action",
|
||||||
"version": "3.1.0",
|
"version": "3.1.3",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "codecov-action",
|
"name": "codecov-action",
|
||||||
"version": "3.1.0",
|
"version": "3.1.3",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.6.0",
|
"@actions/core": "^1.10.0",
|
||||||
"@actions/exec": "^1.1.1",
|
"@actions/exec": "^1.1.1",
|
||||||
"@actions/github": "^5.0.1",
|
"@actions/github": "^5.1.1",
|
||||||
"node-fetch": "^3.2.3",
|
"node-fetch": "^3.3.1",
|
||||||
"openpgp": "^5.2.1"
|
"openpgp": "5.8"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^27.4.1",
|
"@types/jest": "^27.5.0",
|
||||||
"@types/node": "^17.0.25",
|
"@types/node": "^18.15.12",
|
||||||
"@typescript-eslint/eslint-plugin": "^4.29.2",
|
"@typescript-eslint/eslint-plugin": "^4.29.2",
|
||||||
"@typescript-eslint/parser": "^4.29.2",
|
"@typescript-eslint/parser": "^4.29.2",
|
||||||
"@vercel/ncc": "^0.33.4",
|
"@vercel/ncc": "^0.36.1",
|
||||||
"eslint": "^7.32.0",
|
"eslint": "^7.32.0",
|
||||||
"eslint-config-google": "^0.14.0",
|
"eslint-config-google": "^0.14.0",
|
||||||
"jest": "^26.6.3",
|
"jest": "^26.6.3",
|
||||||
"jest-junit": "^13.2.0",
|
"jest-junit": "^16.0.0",
|
||||||
"ts-jest": "^26.5.6",
|
"ts-jest": "^26.5.6",
|
||||||
"typescript": "^4.6.3"
|
"typescript": "^4.9.5"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@actions/core": {
|
"node_modules/@actions/core": {
|
||||||
"version": "1.6.0",
|
"version": "1.10.0",
|
||||||
"resolved": "https://registry.npmjs.org/@actions/core/-/core-1.6.0.tgz",
|
"resolved": "https://registry.npmjs.org/@actions/core/-/core-1.10.0.tgz",
|
||||||
"integrity": "sha512-NB1UAZomZlCV/LmJqkLhNTqtKfFXJZAUPcfl/zqG7EfsQdeUJtaWO98SGbuQ3pydJ3fHl2CvI/51OKYlCYYcaw==",
|
"integrity": "sha512-2aZDDa3zrrZbP5ZYg159sNoLRb61nQ7awl5pSvIq5Qpj81vwDzdMRKzkWJGJuwVvWpvZKx7vspJALyvaaIQyug==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/http-client": "^1.0.11"
|
"@actions/http-client": "^2.0.1",
|
||||||
|
"uuid": "^8.3.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@actions/core/node_modules/@actions/http-client": {
|
||||||
|
"version": "2.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.0.1.tgz",
|
||||||
|
"integrity": "sha512-PIXiMVtz6VvyaRsGY268qvj57hXQEpsYogYOu2nrQhlf+XCGmZstmuZBbAybUl1nQGnvS1k1eEsQ69ZoD7xlSw==",
|
||||||
|
"dependencies": {
|
||||||
|
"tunnel": "^0.0.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@actions/exec": {
|
"node_modules/@actions/exec": {
|
||||||
@@ -46,22 +55,22 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@actions/github": {
|
"node_modules/@actions/github": {
|
||||||
"version": "5.0.1",
|
"version": "5.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/@actions/github/-/github-5.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/@actions/github/-/github-5.1.1.tgz",
|
||||||
"integrity": "sha512-JZGyPM9ektb8NVTTI/2gfJ9DL7Rk98tQ7OVyTlgTuaQroariRBsOnzjy0I2EarX4xUZpK88YyO503fhmjFdyAg==",
|
"integrity": "sha512-Nk59rMDoJaV+mHCOJPXuvB1zIbomlKS0dmSIqPGxd0enAXBnOfn4VWF+CGtRCwXZG9Epa54tZA7VIRlJDS8A6g==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/http-client": "^1.0.11",
|
"@actions/http-client": "^2.0.1",
|
||||||
"@octokit/core": "^3.6.0",
|
"@octokit/core": "^3.6.0",
|
||||||
"@octokit/plugin-paginate-rest": "^2.17.0",
|
"@octokit/plugin-paginate-rest": "^2.17.0",
|
||||||
"@octokit/plugin-rest-endpoint-methods": "^5.13.0"
|
"@octokit/plugin-rest-endpoint-methods": "^5.13.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@actions/http-client": {
|
"node_modules/@actions/github/node_modules/@actions/http-client": {
|
||||||
"version": "1.0.11",
|
"version": "2.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-1.0.11.tgz",
|
"resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.0.1.tgz",
|
||||||
"integrity": "sha512-VRYHGQV1rqnROJqdMvGUbY/Kn8vriQe/F9HR2AlYHzmKuM/p3kjNuXhmdBfcVgsvRWTz5C5XW5xvndZrVBuAYg==",
|
"integrity": "sha512-PIXiMVtz6VvyaRsGY268qvj57hXQEpsYogYOu2nrQhlf+XCGmZstmuZBbAybUl1nQGnvS1k1eEsQ69ZoD7xlSw==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"tunnel": "0.0.6"
|
"tunnel": "^0.0.6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@actions/io": {
|
"node_modules/@actions/io": {
|
||||||
@@ -1304,9 +1313,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@types/jest": {
|
"node_modules/@types/jest": {
|
||||||
"version": "27.4.1",
|
"version": "27.5.0",
|
||||||
"resolved": "https://registry.npmjs.org/@types/jest/-/jest-27.4.1.tgz",
|
"resolved": "https://registry.npmjs.org/@types/jest/-/jest-27.5.0.tgz",
|
||||||
"integrity": "sha512-23iPJADSmicDVrWk+HT58LMJtzLAnB2AgIzplQuq/bSrGaxCrlvRFjGbXmamnnk/mAmCdLStiGqggu28ocUyiw==",
|
"integrity": "sha512-9RBFx7r4k+msyj/arpfaa0WOOEcaAZNmN+j80KFbFCoSqCJGHTz7YMAMGQW9Xmqm5w6l5c25vbSjMwlikJi5+g==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"jest-matcher-utils": "^27.0.0",
|
"jest-matcher-utils": "^27.0.0",
|
||||||
@@ -1320,9 +1329,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@types/node": {
|
"node_modules/@types/node": {
|
||||||
"version": "17.0.25",
|
"version": "18.15.12",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.25.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.15.12.tgz",
|
||||||
"integrity": "sha512-wANk6fBrUwdpY4isjWrKTufkrXdu1D2YHCot2fD/DfWxF5sMrVSA+KN7ydckvaTCh0HiqX9IVl0L5/ZoXg5M7w==",
|
"integrity": "sha512-Wha1UwsB3CYdqUm2PPzh/1gujGCNtWVUYF0mB00fJFoR4gTyWTDPjSm+zBF787Ahw8vSGgBja90MkgFwvB86Dg==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@types/normalize-package-data": {
|
"node_modules/@types/normalize-package-data": {
|
||||||
@@ -1516,9 +1525,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@vercel/ncc": {
|
"node_modules/@vercel/ncc": {
|
||||||
"version": "0.33.4",
|
"version": "0.36.1",
|
||||||
"resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.33.4.tgz",
|
"resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.36.1.tgz",
|
||||||
"integrity": "sha512-ln18hs7dMffelP47tpkaR+V5Tj6coykNyxJrlcmCormPqRQjB/Gv4cu2FfBG+PMzIfdZp2CLDsrrB1NPU22Qhg==",
|
"integrity": "sha512-S4cL7Taa9yb5qbv+6wLgiKVZ03Qfkc4jGRuiUQMQ8HGBD5pcNRnHeYM33zBvJE4/zJGjJJ8GScB+WmTsn9mORw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
"ncc": "dist/ncc/cli.js"
|
"ncc": "dist/ncc/cli.js"
|
||||||
@@ -2413,9 +2422,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/decode-uri-component": {
|
"node_modules/decode-uri-component": {
|
||||||
"version": "0.2.0",
|
"version": "0.2.2",
|
||||||
"resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz",
|
||||||
"integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=",
|
"integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=0.10"
|
"node": ">=0.10"
|
||||||
@@ -4438,9 +4447,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/jest-junit": {
|
"node_modules/jest-junit": {
|
||||||
"version": "13.2.0",
|
"version": "16.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/jest-junit/-/jest-junit-13.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/jest-junit/-/jest-junit-16.0.0.tgz",
|
||||||
"integrity": "sha512-B0XNlotl1rdsvFZkFfoa19mc634+rrd8E4Sskb92Bb8MmSXeWV9XJGUyctunZS1W410uAxcyYuPUGVnbcOH8cg==",
|
"integrity": "sha512-A94mmw6NfJab4Fg/BlvVOUXzXgF0XIH6EmTgJ5NDPp4xoKq0Kr7sErb+4Xs9nZvu58pJojz5RFGpqnZYJTrRfQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"mkdirp": "^1.0.4",
|
"mkdirp": "^1.0.4",
|
||||||
@@ -4978,9 +4987,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/json5": {
|
"node_modules/json5": {
|
||||||
"version": "2.2.1",
|
"version": "2.2.3",
|
||||||
"resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
|
||||||
"integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==",
|
"integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
"json5": "lib/cli.js"
|
"json5": "lib/cli.js"
|
||||||
@@ -5302,9 +5311,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/node-fetch": {
|
"node_modules/node-fetch": {
|
||||||
"version": "3.2.3",
|
"version": "3.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.2.3.tgz",
|
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.1.tgz",
|
||||||
"integrity": "sha512-AXP18u4pidSZ1xYXRDPY/8jdv3RAozIt/WLNR/MBGZAz+xjtlr90RvCnsvHQRiXyWliZF/CpytExp32UU67/SA==",
|
"integrity": "sha512-cRVc/kyto/7E5shrWca1Wsea4y6tL9iYJE5FBCius3JQfb/4P4I295PfhgbJQBLTx6lATE4z+wK0rPM4VS2uow==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"data-uri-to-buffer": "^4.0.0",
|
"data-uri-to-buffer": "^4.0.0",
|
||||||
"fetch-blob": "^3.1.4",
|
"fetch-blob": "^3.1.4",
|
||||||
@@ -5526,9 +5535,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/openpgp": {
|
"node_modules/openpgp": {
|
||||||
"version": "5.2.1",
|
"version": "5.8.0",
|
||||||
"resolved": "https://registry.npmjs.org/openpgp/-/openpgp-5.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/openpgp/-/openpgp-5.8.0.tgz",
|
||||||
"integrity": "sha512-zvu63kxe70q3D6WlKC/TB2pzI59I8V/l4G+z/VYgNVOyARsoH9q4i/WqwoHPjWG5HnRjhII3WSvp3gXH2DMPVg==",
|
"integrity": "sha512-hq4+4s/vpjuwGgZSjplGp4j5FzSz+KwiFRiqMx+ZXr7VCK3CvTkktYilMTZMrf2vHsFH8aQ0596Lmn07HeKRmQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"asn1.js": "^5.0.0"
|
"asn1.js": "^5.0.0"
|
||||||
},
|
},
|
||||||
@@ -7354,9 +7363,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/typescript": {
|
"node_modules/typescript": {
|
||||||
"version": "4.6.3",
|
"version": "4.9.5",
|
||||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.3.tgz",
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz",
|
||||||
"integrity": "sha512-yNIatDa5iaofVozS/uQJEl3JRWLKKGJKh6Yaiv0GLGSuhpFJe7P3SbHZ8/yjAHRQwKRoA6YZqlfjXWmVzoVSMw==",
|
"integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
"tsc": "bin/tsc",
|
"tsc": "bin/tsc",
|
||||||
@@ -7481,7 +7490,6 @@
|
|||||||
"version": "8.3.2",
|
"version": "8.3.2",
|
||||||
"resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
|
"resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
|
||||||
"integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
|
"integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
|
||||||
"dev": true,
|
|
||||||
"bin": {
|
"bin": {
|
||||||
"uuid": "dist/bin/uuid"
|
"uuid": "dist/bin/uuid"
|
||||||
}
|
}
|
||||||
@@ -7760,11 +7768,22 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": {
|
"@actions/core": {
|
||||||
"version": "1.6.0",
|
"version": "1.10.0",
|
||||||
"resolved": "https://registry.npmjs.org/@actions/core/-/core-1.6.0.tgz",
|
"resolved": "https://registry.npmjs.org/@actions/core/-/core-1.10.0.tgz",
|
||||||
"integrity": "sha512-NB1UAZomZlCV/LmJqkLhNTqtKfFXJZAUPcfl/zqG7EfsQdeUJtaWO98SGbuQ3pydJ3fHl2CvI/51OKYlCYYcaw==",
|
"integrity": "sha512-2aZDDa3zrrZbP5ZYg159sNoLRb61nQ7awl5pSvIq5Qpj81vwDzdMRKzkWJGJuwVvWpvZKx7vspJALyvaaIQyug==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@actions/http-client": "^1.0.11"
|
"@actions/http-client": "^2.0.1",
|
||||||
|
"uuid": "^8.3.2"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@actions/http-client": {
|
||||||
|
"version": "2.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.0.1.tgz",
|
||||||
|
"integrity": "sha512-PIXiMVtz6VvyaRsGY268qvj57hXQEpsYogYOu2nrQhlf+XCGmZstmuZBbAybUl1nQGnvS1k1eEsQ69ZoD7xlSw==",
|
||||||
|
"requires": {
|
||||||
|
"tunnel": "^0.0.6"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@actions/exec": {
|
"@actions/exec": {
|
||||||
@@ -7776,22 +7795,24 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@actions/github": {
|
"@actions/github": {
|
||||||
"version": "5.0.1",
|
"version": "5.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/@actions/github/-/github-5.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/@actions/github/-/github-5.1.1.tgz",
|
||||||
"integrity": "sha512-JZGyPM9ektb8NVTTI/2gfJ9DL7Rk98tQ7OVyTlgTuaQroariRBsOnzjy0I2EarX4xUZpK88YyO503fhmjFdyAg==",
|
"integrity": "sha512-Nk59rMDoJaV+mHCOJPXuvB1zIbomlKS0dmSIqPGxd0enAXBnOfn4VWF+CGtRCwXZG9Epa54tZA7VIRlJDS8A6g==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@actions/http-client": "^1.0.11",
|
"@actions/http-client": "^2.0.1",
|
||||||
"@octokit/core": "^3.6.0",
|
"@octokit/core": "^3.6.0",
|
||||||
"@octokit/plugin-paginate-rest": "^2.17.0",
|
"@octokit/plugin-paginate-rest": "^2.17.0",
|
||||||
"@octokit/plugin-rest-endpoint-methods": "^5.13.0"
|
"@octokit/plugin-rest-endpoint-methods": "^5.13.0"
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
"dependencies": {
|
||||||
"@actions/http-client": {
|
"@actions/http-client": {
|
||||||
"version": "1.0.11",
|
"version": "2.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-1.0.11.tgz",
|
"resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.0.1.tgz",
|
||||||
"integrity": "sha512-VRYHGQV1rqnROJqdMvGUbY/Kn8vriQe/F9HR2AlYHzmKuM/p3kjNuXhmdBfcVgsvRWTz5C5XW5xvndZrVBuAYg==",
|
"integrity": "sha512-PIXiMVtz6VvyaRsGY268qvj57hXQEpsYogYOu2nrQhlf+XCGmZstmuZBbAybUl1nQGnvS1k1eEsQ69ZoD7xlSw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"tunnel": "0.0.6"
|
"tunnel": "^0.0.6"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@actions/io": {
|
"@actions/io": {
|
||||||
@@ -8810,9 +8831,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@types/jest": {
|
"@types/jest": {
|
||||||
"version": "27.4.1",
|
"version": "27.5.0",
|
||||||
"resolved": "https://registry.npmjs.org/@types/jest/-/jest-27.4.1.tgz",
|
"resolved": "https://registry.npmjs.org/@types/jest/-/jest-27.5.0.tgz",
|
||||||
"integrity": "sha512-23iPJADSmicDVrWk+HT58LMJtzLAnB2AgIzplQuq/bSrGaxCrlvRFjGbXmamnnk/mAmCdLStiGqggu28ocUyiw==",
|
"integrity": "sha512-9RBFx7r4k+msyj/arpfaa0WOOEcaAZNmN+j80KFbFCoSqCJGHTz7YMAMGQW9Xmqm5w6l5c25vbSjMwlikJi5+g==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"jest-matcher-utils": "^27.0.0",
|
"jest-matcher-utils": "^27.0.0",
|
||||||
@@ -8826,9 +8847,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@types/node": {
|
"@types/node": {
|
||||||
"version": "17.0.25",
|
"version": "18.15.12",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.25.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.15.12.tgz",
|
||||||
"integrity": "sha512-wANk6fBrUwdpY4isjWrKTufkrXdu1D2YHCot2fD/DfWxF5sMrVSA+KN7ydckvaTCh0HiqX9IVl0L5/ZoXg5M7w==",
|
"integrity": "sha512-Wha1UwsB3CYdqUm2PPzh/1gujGCNtWVUYF0mB00fJFoR4gTyWTDPjSm+zBF787Ahw8vSGgBja90MkgFwvB86Dg==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@types/normalize-package-data": {
|
"@types/normalize-package-data": {
|
||||||
@@ -8948,9 +8969,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@vercel/ncc": {
|
"@vercel/ncc": {
|
||||||
"version": "0.33.4",
|
"version": "0.36.1",
|
||||||
"resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.33.4.tgz",
|
"resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.36.1.tgz",
|
||||||
"integrity": "sha512-ln18hs7dMffelP47tpkaR+V5Tj6coykNyxJrlcmCormPqRQjB/Gv4cu2FfBG+PMzIfdZp2CLDsrrB1NPU22Qhg==",
|
"integrity": "sha512-S4cL7Taa9yb5qbv+6wLgiKVZ03Qfkc4jGRuiUQMQ8HGBD5pcNRnHeYM33zBvJE4/zJGjJJ8GScB+WmTsn9mORw==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"abab": {
|
"abab": {
|
||||||
@@ -9635,9 +9656,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"decode-uri-component": {
|
"decode-uri-component": {
|
||||||
"version": "0.2.0",
|
"version": "0.2.2",
|
||||||
"resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz",
|
||||||
"integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=",
|
"integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"deep-is": {
|
"deep-is": {
|
||||||
@@ -11190,9 +11211,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"jest-junit": {
|
"jest-junit": {
|
||||||
"version": "13.2.0",
|
"version": "16.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/jest-junit/-/jest-junit-13.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/jest-junit/-/jest-junit-16.0.0.tgz",
|
||||||
"integrity": "sha512-B0XNlotl1rdsvFZkFfoa19mc634+rrd8E4Sskb92Bb8MmSXeWV9XJGUyctunZS1W410uAxcyYuPUGVnbcOH8cg==",
|
"integrity": "sha512-A94mmw6NfJab4Fg/BlvVOUXzXgF0XIH6EmTgJ5NDPp4xoKq0Kr7sErb+4Xs9nZvu58pJojz5RFGpqnZYJTrRfQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"mkdirp": "^1.0.4",
|
"mkdirp": "^1.0.4",
|
||||||
@@ -11625,9 +11646,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"json5": {
|
"json5": {
|
||||||
"version": "2.2.1",
|
"version": "2.2.3",
|
||||||
"resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
|
||||||
"integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==",
|
"integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"kind-of": {
|
"kind-of": {
|
||||||
@@ -11869,9 +11890,9 @@
|
|||||||
"integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ=="
|
"integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ=="
|
||||||
},
|
},
|
||||||
"node-fetch": {
|
"node-fetch": {
|
||||||
"version": "3.2.3",
|
"version": "3.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.2.3.tgz",
|
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.1.tgz",
|
||||||
"integrity": "sha512-AXP18u4pidSZ1xYXRDPY/8jdv3RAozIt/WLNR/MBGZAz+xjtlr90RvCnsvHQRiXyWliZF/CpytExp32UU67/SA==",
|
"integrity": "sha512-cRVc/kyto/7E5shrWca1Wsea4y6tL9iYJE5FBCius3JQfb/4P4I295PfhgbJQBLTx6lATE4z+wK0rPM4VS2uow==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"data-uri-to-buffer": "^4.0.0",
|
"data-uri-to-buffer": "^4.0.0",
|
||||||
"fetch-blob": "^3.1.4",
|
"fetch-blob": "^3.1.4",
|
||||||
@@ -12050,9 +12071,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"openpgp": {
|
"openpgp": {
|
||||||
"version": "5.2.1",
|
"version": "5.8.0",
|
||||||
"resolved": "https://registry.npmjs.org/openpgp/-/openpgp-5.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/openpgp/-/openpgp-5.8.0.tgz",
|
||||||
"integrity": "sha512-zvu63kxe70q3D6WlKC/TB2pzI59I8V/l4G+z/VYgNVOyARsoH9q4i/WqwoHPjWG5HnRjhII3WSvp3gXH2DMPVg==",
|
"integrity": "sha512-hq4+4s/vpjuwGgZSjplGp4j5FzSz+KwiFRiqMx+ZXr7VCK3CvTkktYilMTZMrf2vHsFH8aQ0596Lmn07HeKRmQ==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"asn1.js": "^5.0.0"
|
"asn1.js": "^5.0.0"
|
||||||
}
|
}
|
||||||
@@ -13445,9 +13466,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"typescript": {
|
"typescript": {
|
||||||
"version": "4.6.3",
|
"version": "4.9.5",
|
||||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.3.tgz",
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz",
|
||||||
"integrity": "sha512-yNIatDa5iaofVozS/uQJEl3JRWLKKGJKh6Yaiv0GLGSuhpFJe7P3SbHZ8/yjAHRQwKRoA6YZqlfjXWmVzoVSMw==",
|
"integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"union-value": {
|
"union-value": {
|
||||||
@@ -13545,8 +13566,7 @@
|
|||||||
"uuid": {
|
"uuid": {
|
||||||
"version": "8.3.2",
|
"version": "8.3.2",
|
||||||
"resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
|
"resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
|
||||||
"integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
|
"integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg=="
|
||||||
"dev": true
|
|
||||||
},
|
},
|
||||||
"v8-compile-cache": {
|
"v8-compile-cache": {
|
||||||
"version": "2.3.0",
|
"version": "2.3.0",
|
||||||
|
|||||||
20
package.json
20
package.json
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "codecov-action",
|
"name": "codecov-action",
|
||||||
"version": "3.1.0",
|
"version": "3.1.3",
|
||||||
"description": "Upload coverage reports to Codecov from GitHub Actions",
|
"description": "Upload coverage reports to Codecov from GitHub Actions",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -23,23 +23,23 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/codecov/codecov-action#readme",
|
"homepage": "https://github.com/codecov/codecov-action#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.6.0",
|
"@actions/core": "^1.10.0",
|
||||||
"@actions/exec": "^1.1.1",
|
"@actions/exec": "^1.1.1",
|
||||||
"@actions/github": "^5.0.1",
|
"@actions/github": "^5.1.1",
|
||||||
"node-fetch": "^3.2.3",
|
"node-fetch": "^3.3.1",
|
||||||
"openpgp": "^5.2.1"
|
"openpgp": "5.8"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^27.4.1",
|
"@types/jest": "^27.5.0",
|
||||||
"@types/node": "^17.0.25",
|
"@types/node": "^18.15.12",
|
||||||
"@typescript-eslint/eslint-plugin": "^4.29.2",
|
"@typescript-eslint/eslint-plugin": "^4.29.2",
|
||||||
"@typescript-eslint/parser": "^4.29.2",
|
"@typescript-eslint/parser": "^4.29.2",
|
||||||
"@vercel/ncc": "^0.33.4",
|
"@vercel/ncc": "^0.36.1",
|
||||||
"eslint": "^7.32.0",
|
"eslint": "^7.32.0",
|
||||||
"eslint-config-google": "^0.14.0",
|
"eslint-config-google": "^0.14.0",
|
||||||
"jest": "^26.6.3",
|
"jest": "^26.6.3",
|
||||||
"jest-junit": "^13.2.0",
|
"jest-junit": "^16.0.0",
|
||||||
"ts-jest": "^26.5.6",
|
"ts-jest": "^26.5.6",
|
||||||
"typescript": "^4.6.3"
|
"typescript": "^4.9.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,26 +35,32 @@ test('all arguments', () => {
|
|||||||
'flags': 'test,test2',
|
'flags': 'test,test2',
|
||||||
'functionalities':
|
'functionalities':
|
||||||
'network',
|
'network',
|
||||||
|
'full_report': 'oldDir/oldReport.json',
|
||||||
'gcov': 'true',
|
'gcov': 'true',
|
||||||
'gcov_args': '-v',
|
'gcov_args': '-v',
|
||||||
'gcov_ignore': '*.fake',
|
'gcov_ignore': '*.fake',
|
||||||
'gcov_include': 'real_file',
|
'gcov_include': 'real_file',
|
||||||
|
'gcov_executable': 'gcov2',
|
||||||
'move_coverage_to_trash': 'true',
|
'move_coverage_to_trash': 'true',
|
||||||
'name': 'codecov',
|
'name': 'codecov',
|
||||||
|
'network_filter': 'src/',
|
||||||
|
'network_prefix': 'build/',
|
||||||
'override_branch': 'thomasrockhu/test',
|
'override_branch': 'thomasrockhu/test',
|
||||||
'override_build': '1',
|
'override_build': '1',
|
||||||
'override_commit': '9caabca5474b49de74ef5667deabaf74cdacc244',
|
'override_commit': '9caabca5474b49de74ef5667deabaf74cdacc244',
|
||||||
'override_pr': '2',
|
'override_pr': '2',
|
||||||
'override_tag': 'v1.2',
|
'override_tag': 'v1.2',
|
||||||
'path_to_write_report': 'codecov/',
|
|
||||||
'root_dir': 'root/',
|
'root_dir': 'root/',
|
||||||
|
'swift': 'true',
|
||||||
|
'swift_project': 'MyApp',
|
||||||
'slug': 'fakeOwner/fakeRepo',
|
'slug': 'fakeOwner/fakeRepo',
|
||||||
'token': 'd3859757-ab80-4664-924d-aef22fa7557b',
|
'token': 'd3859757-ab80-4664-924d-aef22fa7557b',
|
||||||
|
'upstream_proxy': 'https://codecov.example.com',
|
||||||
'url': 'https://codecov.enterprise.com',
|
'url': 'https://codecov.enterprise.com',
|
||||||
'verbose': 't',
|
'verbose': 't',
|
||||||
'working-directory': 'src',
|
|
||||||
'xcode': 'true',
|
'xcode': 'true',
|
||||||
'xcode_archive_path': '/test.xcresult',
|
'xcode_archive_path': '/test.xcresult',
|
||||||
|
'xtra_args': '-some -other -args',
|
||||||
};
|
};
|
||||||
|
|
||||||
for (const env of Object.keys(envs)) {
|
for (const env of Object.keys(envs)) {
|
||||||
@@ -82,17 +88,25 @@ test('all arguments', () => {
|
|||||||
'dir1/coverage.xml',
|
'dir1/coverage.xml',
|
||||||
'-f',
|
'-f',
|
||||||
'dir2/coverage.xml',
|
'dir2/coverage.xml',
|
||||||
|
'-full',
|
||||||
|
'oldDir/oldReport.json',
|
||||||
'-F',
|
'-F',
|
||||||
'test',
|
'test',
|
||||||
'-F',
|
'-F',
|
||||||
'test2',
|
'test2',
|
||||||
'-g',
|
'-g',
|
||||||
'--gcovArgs',
|
'-gcovArgs',
|
||||||
'-v',
|
'-v',
|
||||||
'--gcovIgnore',
|
'-gcovIgnore',
|
||||||
'*.fake',
|
'*.fake',
|
||||||
'--gcovInclude',
|
'-gcovInclude',
|
||||||
'real_file',
|
'real_file',
|
||||||
|
'-gcovExecutable',
|
||||||
|
'gcov2',
|
||||||
|
'-networkFilter',
|
||||||
|
'src/',
|
||||||
|
'-networkPrefix',
|
||||||
|
'build/',
|
||||||
'-B',
|
'-B',
|
||||||
'thomasrockhu/test',
|
'thomasrockhu/test',
|
||||||
'-b',
|
'-b',
|
||||||
@@ -109,12 +123,18 @@ test('all arguments', () => {
|
|||||||
'coverage/',
|
'coverage/',
|
||||||
'-r',
|
'-r',
|
||||||
'fakeOwner/fakeRepo',
|
'fakeOwner/fakeRepo',
|
||||||
|
'-xs',
|
||||||
|
'-xsp',
|
||||||
|
'MyApp',
|
||||||
|
'-U',
|
||||||
|
'https://codecov.example.com',
|
||||||
'-u',
|
'-u',
|
||||||
'https://codecov.enterprise.com',
|
'https://codecov.enterprise.com',
|
||||||
'-v',
|
'-v',
|
||||||
'--xc',
|
'-xc',
|
||||||
'--xp',
|
'-xp',
|
||||||
'/test.xcresult',
|
'/test.xcresult',
|
||||||
|
'-some -other -args',
|
||||||
]);
|
]);
|
||||||
expect(failCi).toBeTruthy();
|
expect(failCi).toBeTruthy();
|
||||||
|
|
||||||
@@ -122,3 +142,84 @@ test('all arguments', () => {
|
|||||||
delete process.env['INPUT_' + env.toUpperCase()];
|
delete process.env['INPUT_' + env.toUpperCase()];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe('trim arguments after splitting them', () => {
|
||||||
|
const baseExpectation = [
|
||||||
|
'-n',
|
||||||
|
expect.stringContaining(''),
|
||||||
|
'-Q',
|
||||||
|
expect.stringContaining('github-action'),
|
||||||
|
];
|
||||||
|
|
||||||
|
test('files', () => {
|
||||||
|
const envs = {'files': './client-coverage.txt, ./lcov.info'};
|
||||||
|
|
||||||
|
for (const [name, value] of Object.entries(envs)) {
|
||||||
|
process.env['INPUT_' + name.toUpperCase()] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
const {execArgs} = buildExec();
|
||||||
|
|
||||||
|
expect(execArgs).toEqual(
|
||||||
|
expect.arrayContaining([
|
||||||
|
...baseExpectation,
|
||||||
|
'-f',
|
||||||
|
'./client-coverage.txt',
|
||||||
|
'-f',
|
||||||
|
'./lcov.info',
|
||||||
|
]),
|
||||||
|
);
|
||||||
|
|
||||||
|
for (const env of Object.keys(envs)) {
|
||||||
|
delete process.env['INPUT_' + env.toUpperCase()];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
test('flags', () => {
|
||||||
|
const envs = {'flags': 'ios, mobile'};
|
||||||
|
|
||||||
|
for (const [name, value] of Object.entries(envs)) {
|
||||||
|
process.env['INPUT_' + name.toUpperCase()] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
const {execArgs} = buildExec();
|
||||||
|
|
||||||
|
expect(execArgs).toEqual(
|
||||||
|
expect.arrayContaining([
|
||||||
|
...baseExpectation,
|
||||||
|
'-F',
|
||||||
|
'ios',
|
||||||
|
'-F',
|
||||||
|
'mobile',
|
||||||
|
]),
|
||||||
|
);
|
||||||
|
|
||||||
|
for (const env of Object.keys(envs)) {
|
||||||
|
delete process.env['INPUT_' + env.toUpperCase()];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
test('functionalities', () => {
|
||||||
|
const envs = {'functionalities': 'network, gcov'};
|
||||||
|
|
||||||
|
for (const [name, value] of Object.entries(envs)) {
|
||||||
|
process.env['INPUT_' + name.toUpperCase()] = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
const {execArgs} = buildExec();
|
||||||
|
|
||||||
|
expect(execArgs).toEqual(
|
||||||
|
expect.arrayContaining([
|
||||||
|
...baseExpectation,
|
||||||
|
'-X',
|
||||||
|
'network',
|
||||||
|
'-X',
|
||||||
|
'gcov',
|
||||||
|
]),
|
||||||
|
);
|
||||||
|
|
||||||
|
for (const env of Object.keys(envs)) {
|
||||||
|
delete process.env['INPUT_' + env.toUpperCase()];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|||||||
@@ -19,18 +19,22 @@ const isTrue = (variable) => {
|
|||||||
const buildExec = () => {
|
const buildExec = () => {
|
||||||
const clean = core.getInput('move_coverage_to_trash');
|
const clean = core.getInput('move_coverage_to_trash');
|
||||||
const commitParent = core.getInput('commit_parent');
|
const commitParent = core.getInput('commit_parent');
|
||||||
const envVars = core.getInput('env_vars');
|
|
||||||
const dryRun = isTrue(core.getInput('dry_run'));
|
const dryRun = isTrue(core.getInput('dry_run'));
|
||||||
|
const envVars = core.getInput('env_vars');
|
||||||
const failCi = isTrue(core.getInput('fail_ci_if_error'));
|
const failCi = isTrue(core.getInput('fail_ci_if_error'));
|
||||||
const file = core.getInput('file');
|
const file = core.getInput('file');
|
||||||
const files = core.getInput('files');
|
const files = core.getInput('files');
|
||||||
const flags = core.getInput('flags');
|
const flags = core.getInput('flags');
|
||||||
|
const fullReport = core.getInput('full_report');
|
||||||
|
const functionalities = core.getInput('functionalities');
|
||||||
const gcov = core.getInput('gcov');
|
const gcov = core.getInput('gcov');
|
||||||
const gcovArgs = core.getInput('gcov_args');
|
const gcovArgs = core.getInput('gcov_args');
|
||||||
|
const gcovExecutable = core.getInput('gcov_executable');
|
||||||
const gcovIgnore = core.getInput('gcov_ignore');
|
const gcovIgnore = core.getInput('gcov_ignore');
|
||||||
const gcovInclude = core.getInput('gcov_include');
|
const gcovInclude = core.getInput('gcov_include');
|
||||||
const functionalities = core.getInput('functionalities');
|
|
||||||
const name = core.getInput('name');
|
const name = core.getInput('name');
|
||||||
|
const networkFilter = core.getInput('network_filter');
|
||||||
|
const networkPrefix = core.getInput('network_prefix');
|
||||||
const os = core.getInput('os');
|
const os = core.getInput('os');
|
||||||
const overrideBranch = core.getInput('override_branch');
|
const overrideBranch = core.getInput('override_branch');
|
||||||
const overrideBuild = core.getInput('override_build');
|
const overrideBuild = core.getInput('override_build');
|
||||||
@@ -40,13 +44,16 @@ const buildExec = () => {
|
|||||||
const rootDir = core.getInput('root_dir');
|
const rootDir = core.getInput('root_dir');
|
||||||
const searchDir = core.getInput('directory');
|
const searchDir = core.getInput('directory');
|
||||||
const slug = core.getInput('slug');
|
const slug = core.getInput('slug');
|
||||||
|
const swift = core.getInput('swift');
|
||||||
|
const swiftProject = core.getInput('swift_project');
|
||||||
const token = core.getInput('token');
|
const token = core.getInput('token');
|
||||||
let uploaderVersion = core.getInput('version');
|
const upstream = core.getInput('upstream_proxy');
|
||||||
const url = core.getInput('url');
|
const url = core.getInput('url');
|
||||||
const verbose = isTrue(core.getInput('verbose'));
|
const verbose = isTrue(core.getInput('verbose'));
|
||||||
const workingDir = core.getInput('working-directory');
|
|
||||||
const xcode = core.getInput('xcode');
|
const xcode = core.getInput('xcode');
|
||||||
const xcodeArchivePath = core.getInput('xcode_archive_path');
|
const xcodeArchivePath = core.getInput('xcode_archive_path');
|
||||||
|
const xtraArgs = core.getInput('xtra_args');
|
||||||
|
let uploaderVersion = core.getInput('version');
|
||||||
|
|
||||||
const execArgs = [];
|
const execArgs = [];
|
||||||
execArgs.push(
|
execArgs.push(
|
||||||
@@ -91,7 +98,7 @@ const buildExec = () => {
|
|||||||
execArgs.push('-e', envVarsArg.join(','));
|
execArgs.push('-e', envVarsArg.join(','));
|
||||||
}
|
}
|
||||||
if (functionalities) {
|
if (functionalities) {
|
||||||
functionalities.split(',').forEach((f) => {
|
functionalities.split(',').map((f) => f.trim()).forEach((f) => {
|
||||||
execArgs.push('-X', `${f}`);
|
execArgs.push('-X', `${f}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -102,12 +109,15 @@ const buildExec = () => {
|
|||||||
execArgs.push('-f', `${file}`);
|
execArgs.push('-f', `${file}`);
|
||||||
}
|
}
|
||||||
if (files) {
|
if (files) {
|
||||||
files.split(',').forEach((f) => {
|
files.split(',').map((f) => f.trim()).forEach((f) => {
|
||||||
execArgs.push('-f', `${f}`);
|
execArgs.push('-f', `${f}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if (fullReport) {
|
||||||
|
execArgs.push('-full', `${fullReport}`);
|
||||||
|
}
|
||||||
if (flags) {
|
if (flags) {
|
||||||
flags.split(',').forEach((f) => {
|
flags.split(',').map((f) => f.trim()).forEach((f) => {
|
||||||
execArgs.push('-F', `${f}`);
|
execArgs.push('-F', `${f}`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -116,13 +126,23 @@ const buildExec = () => {
|
|||||||
execArgs.push('-g');
|
execArgs.push('-g');
|
||||||
}
|
}
|
||||||
if (gcovArgs) {
|
if (gcovArgs) {
|
||||||
execArgs.push('--gcovArgs', `${gcovArgs}`);
|
execArgs.push('-gcovArgs', `${gcovArgs}`);
|
||||||
}
|
}
|
||||||
if (gcovIgnore) {
|
if (gcovIgnore) {
|
||||||
execArgs.push('--gcovIgnore', `${gcovIgnore}`);
|
execArgs.push('-gcovIgnore', `${gcovIgnore}`);
|
||||||
}
|
}
|
||||||
if (gcovInclude) {
|
if (gcovInclude) {
|
||||||
execArgs.push('--gcovInclude', `${gcovInclude}`);
|
execArgs.push('-gcovInclude', `${gcovInclude}`);
|
||||||
|
}
|
||||||
|
if (gcovExecutable) {
|
||||||
|
execArgs.push('-gcovExecutable', `${gcovExecutable}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (networkFilter) {
|
||||||
|
execArgs.push('-networkFilter', `${networkFilter}`);
|
||||||
|
}
|
||||||
|
if (networkPrefix) {
|
||||||
|
execArgs.push('-networkPrefix', `${networkPrefix}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (overrideBranch) {
|
if (overrideBranch) {
|
||||||
@@ -158,25 +178,39 @@ const buildExec = () => {
|
|||||||
if (slug) {
|
if (slug) {
|
||||||
execArgs.push('-r', `${slug}`);
|
execArgs.push('-r', `${slug}`);
|
||||||
}
|
}
|
||||||
|
if (swift) {
|
||||||
|
execArgs.push('-xs');
|
||||||
|
}
|
||||||
|
if (swift && swiftProject) {
|
||||||
|
execArgs.push('-xsp', `${swiftProject}`);
|
||||||
|
}
|
||||||
|
if (upstream) {
|
||||||
|
execArgs.push('-U', `${upstream}`);
|
||||||
|
}
|
||||||
if (url) {
|
if (url) {
|
||||||
execArgs.push('-u', `${url}`);
|
execArgs.push('-u', `${url}`);
|
||||||
}
|
}
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
execArgs.push('-v');
|
execArgs.push('-v');
|
||||||
}
|
}
|
||||||
if (workingDir) {
|
|
||||||
options.cwd = workingDir;
|
|
||||||
}
|
|
||||||
if (xcode && xcodeArchivePath) {
|
if (xcode && xcodeArchivePath) {
|
||||||
execArgs.push('--xc');
|
execArgs.push('-xc');
|
||||||
execArgs.push('--xp', `${xcodeArchivePath}`);
|
execArgs.push('-xp', `${xcodeArchivePath}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (uploaderVersion == '') {
|
if (uploaderVersion == '') {
|
||||||
uploaderVersion = 'latest';
|
uploaderVersion = 'latest';
|
||||||
}
|
}
|
||||||
|
|
||||||
return {execArgs, options, failCi, os, uploaderVersion};
|
if (verbose) {
|
||||||
|
console.debug({execArgs});
|
||||||
|
}
|
||||||
|
|
||||||
|
if (xtraArgs) {
|
||||||
|
execArgs.push(`${xtraArgs}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
return {execArgs, options, failCi, os, uploaderVersion, verbose};
|
||||||
};
|
};
|
||||||
|
|
||||||
export default buildExec;
|
export default buildExec;
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ test('getBaseUrl', () => {
|
|||||||
expect(PLATFORMS.map((platform) => {
|
expect(PLATFORMS.map((platform) => {
|
||||||
return getBaseUrl(platform, 'latest');
|
return getBaseUrl(platform, 'latest');
|
||||||
})).toEqual([
|
})).toEqual([
|
||||||
|
'https://uploader.codecov.io/latest/aarch64/codecov',
|
||||||
'https://uploader.codecov.io/latest/alpine/codecov',
|
'https://uploader.codecov.io/latest/alpine/codecov',
|
||||||
'https://uploader.codecov.io/latest/linux/codecov',
|
'https://uploader.codecov.io/latest/linux/codecov',
|
||||||
'https://uploader.codecov.io/latest/macos/codecov',
|
'https://uploader.codecov.io/latest/macos/codecov',
|
||||||
@@ -48,6 +49,7 @@ test('getBaseUrl', () => {
|
|||||||
expect(PLATFORMS.map((platform) => {
|
expect(PLATFORMS.map((platform) => {
|
||||||
return getBaseUrl(platform, 'v0.1.0_8880');
|
return getBaseUrl(platform, 'v0.1.0_8880');
|
||||||
})).toEqual([
|
})).toEqual([
|
||||||
|
'https://uploader.codecov.io/v0.1.0_8880/aarch64/codecov',
|
||||||
'https://uploader.codecov.io/v0.1.0_8880/alpine/codecov',
|
'https://uploader.codecov.io/v0.1.0_8880/alpine/codecov',
|
||||||
'https://uploader.codecov.io/v0.1.0_8880/linux/codecov',
|
'https://uploader.codecov.io/v0.1.0_8880/linux/codecov',
|
||||||
'https://uploader.codecov.io/v0.1.0_8880/macos/codecov',
|
'https://uploader.codecov.io/v0.1.0_8880/macos/codecov',
|
||||||
@@ -58,13 +60,13 @@ test('getBaseUrl', () => {
|
|||||||
test('isWindows', () => {
|
test('isWindows', () => {
|
||||||
expect(PLATFORMS.map((platform) => {
|
expect(PLATFORMS.map((platform) => {
|
||||||
return isWindows(platform);
|
return isWindows(platform);
|
||||||
})).toEqual([false, false, false, true]);
|
})).toEqual([false, false, false, false, true]);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('isValidPlatform', () => {
|
test('isValidPlatform', () => {
|
||||||
expect(PLATFORMS.map((platform) => {
|
expect(PLATFORMS.map((platform) => {
|
||||||
return isValidPlatform(platform);
|
return isValidPlatform(platform);
|
||||||
})).toEqual([true, true, true, true]);
|
})).toEqual([true, true, true, true, true]);
|
||||||
|
|
||||||
expect(isValidPlatform('fakeos')).toBeFalsy();
|
expect(isValidPlatform('fakeos')).toBeFalsy();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,6 +1,12 @@
|
|||||||
import * as core from '@actions/core';
|
import * as core from '@actions/core';
|
||||||
|
|
||||||
const PLATFORMS = ['alpine', 'linux', 'macos', 'windows'];
|
const PLATFORMS = [
|
||||||
|
'aarch64',
|
||||||
|
'alpine',
|
||||||
|
'linux',
|
||||||
|
'macos',
|
||||||
|
'windows',
|
||||||
|
];
|
||||||
|
|
||||||
const setFailure = (message: string, failCi: boolean): void => {
|
const setFailure = (message: string, failCi: boolean): void => {
|
||||||
failCi ? core.setFailed(message) : core.warning(message);
|
failCi ? core.setFailed(message) : core.warning(message);
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ import versionInfo from './version';
|
|||||||
let failCi;
|
let failCi;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const {execArgs, options, failCi, os, uploaderVersion} = buildExec();
|
const {execArgs, options, failCi, os, uploaderVersion, verbose} = buildExec();
|
||||||
const platform = getPlatform(os);
|
const platform = getPlatform(os);
|
||||||
|
|
||||||
const filename = path.join( __dirname, getUploaderName(platform));
|
const filename = path.join( __dirname, getUploaderName(platform));
|
||||||
@@ -35,7 +35,7 @@ try {
|
|||||||
}).on('finish', async () => {
|
}).on('finish', async () => {
|
||||||
filePath.close();
|
filePath.close();
|
||||||
|
|
||||||
await verify(filename, platform, uploaderVersion);
|
await verify(filename, platform, uploaderVersion, verbose, failCi);
|
||||||
await versionInfo(platform, uploaderVersion);
|
await versionInfo(platform, uploaderVersion);
|
||||||
await fs.chmodSync(filename, '777');
|
await fs.chmodSync(filename, '777');
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,8 @@ const verify = async (
|
|||||||
filename: string,
|
filename: string,
|
||||||
platform: string,
|
platform: string,
|
||||||
version: string,
|
version: string,
|
||||||
|
verbose: boolean,
|
||||||
|
failCi: boolean,
|
||||||
): Promise<void> => {
|
): Promise<void> => {
|
||||||
try {
|
try {
|
||||||
const uploaderName = getUploaderName(platform);
|
const uploaderName = getUploaderName(platform);
|
||||||
@@ -32,11 +34,17 @@ const verify = async (
|
|||||||
`${getBaseUrl(platform, version)}.SHA256SUM`,
|
`${getBaseUrl(platform, version)}.SHA256SUM`,
|
||||||
);
|
);
|
||||||
const shasum = await shasumRes.text();
|
const shasum = await shasumRes.text();
|
||||||
|
if (verbose) {
|
||||||
|
console.log(`Received SHA256SUM ${shasum}`);
|
||||||
|
}
|
||||||
|
|
||||||
const shaSigRes = await fetch.default(
|
const shaSigRes = await fetch.default(
|
||||||
`${getBaseUrl(platform, version)}.SHA256SUM.sig`,
|
`${getBaseUrl(platform, version)}.SHA256SUM.sig`,
|
||||||
);
|
);
|
||||||
const shaSig = await shaSigRes.text();
|
const shaSig = await shaSigRes.text();
|
||||||
|
if (verbose) {
|
||||||
|
console.log(`Received SHA256SUM signature ${shaSig}`);
|
||||||
|
}
|
||||||
|
|
||||||
// Verify shasum
|
// Verify shasum
|
||||||
const verified = await openpgp.verify({
|
const verified = await openpgp.verify({
|
||||||
@@ -50,7 +58,7 @@ const verify = async (
|
|||||||
verified.signatures[0].keyID.toHex(),
|
verified.signatures[0].keyID.toHex(),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
setFailure('Codecov: Error validating SHASUM signature', true);
|
setFailure('Codecov: Error validating SHASUM signature', failCi);
|
||||||
}
|
}
|
||||||
|
|
||||||
const calculateHash = async (filename: string) => {
|
const calculateHash = async (filename: string) => {
|
||||||
@@ -73,11 +81,11 @@ const verify = async (
|
|||||||
setFailure(
|
setFailure(
|
||||||
'Codecov: Uploader shasum does not match -- ' +
|
'Codecov: Uploader shasum does not match -- ' +
|
||||||
`uploader hash: ${hash}, public hash: ${shasum}`,
|
`uploader hash: ${hash}, public hash: ${shasum}`,
|
||||||
true,
|
failCi,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
setFailure(`Codecov: Error validating uploader: ${err.message}`, true);
|
setFailure(`Codecov: Error validating uploader: ${err.message}`, failCi);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
export default verify;
|
export default verify;
|
||||||
|
|||||||
Reference in New Issue
Block a user