mirror of
https://github.com/codecov/codecov-action.git
synced 2026-03-28 17:05:07 +00:00
Compare commits
23 Commits
tony/test-
...
th/fix-exi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4a208c1d0c | ||
|
|
902e26a66e | ||
|
|
eef94fef0b | ||
|
|
6133781518 | ||
|
|
34a385ff62 | ||
|
|
ad90be6459 | ||
|
|
b8bc9db399 | ||
|
|
45c554e577 | ||
|
|
969e2a1344 | ||
|
|
419a6354b0 | ||
|
|
1c9ba15f25 | ||
|
|
1ffd4a9bde | ||
|
|
2e5fc410f6 | ||
|
|
f7fa523f5c | ||
|
|
7f8b4b4bde | ||
|
|
c2fcb216de | ||
|
|
0192401724 | ||
|
|
cda5e552ba | ||
|
|
2ed5abcb9f | ||
|
|
015f24e681 | ||
|
|
a76271d959 | ||
|
|
d168679d44 | ||
|
|
373fd71a64 |
6
.github/workflows/codeql-analysis.yml
vendored
6
.github/workflows/codeql-analysis.yml
vendored
@@ -41,7 +41,7 @@ jobs:
|
|||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@v3.27.4
|
uses: github/codeql-action/init@v3.27.5
|
||||||
with:
|
with:
|
||||||
languages: ${{ matrix.language }}
|
languages: ${{ matrix.language }}
|
||||||
# If you wish to specify custom queries, you can do so here or in a config file.
|
# If you wish to specify custom queries, you can do so here or in a config file.
|
||||||
@@ -52,7 +52,7 @@ jobs:
|
|||||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
# 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)
|
# If this step fails, then you should remove it and run the build manually (see below)
|
||||||
- name: Autobuild
|
- name: Autobuild
|
||||||
uses: github/codeql-action/autobuild@v3.27.4
|
uses: github/codeql-action/autobuild@v3.27.5
|
||||||
|
|
||||||
# ℹ️ Command-line programs to run using the OS shell.
|
# ℹ️ Command-line programs to run using the OS shell.
|
||||||
# 📚 https://git.io/JvXDl
|
# 📚 https://git.io/JvXDl
|
||||||
@@ -66,4 +66,4 @@ jobs:
|
|||||||
# make release
|
# make release
|
||||||
|
|
||||||
- name: Perform CodeQL Analysis
|
- name: Perform CodeQL Analysis
|
||||||
uses: github/codeql-action/analyze@v3.27.4
|
uses: github/codeql-action/analyze@v3.27.5
|
||||||
|
|||||||
22
.github/workflows/main.yml
vendored
22
.github/workflows/main.yml
vendored
@@ -22,9 +22,9 @@ jobs:
|
|||||||
- name: Upload coverage to Codecov (script)
|
- name: Upload coverage to Codecov (script)
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
fail_ci_if_error: true
|
fail_ci_if_error: false
|
||||||
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
|
verbose: true
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
@@ -33,7 +33,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fail_ci_if_error: true
|
fail_ci_if_error: true
|
||||||
files: ./coverage/calculator/coverage-final.json,./coverage/coverage-test/coverage-final.json,./coverage/coverage-final.json
|
files: ./coverage/calculator/coverage-final.json,./coverage/coverage-test/coverage-final.json,./coverage/coverage-final.json
|
||||||
flags: demo,${{ matrix.os }}
|
flags: demo-${{ matrix.os }}
|
||||||
name: codecov-demo
|
name: codecov-demo
|
||||||
verbose: true
|
verbose: true
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
@@ -42,7 +42,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fail_ci_if_error: true
|
fail_ci_if_error: true
|
||||||
files: ./coverage/calculator/coverage-final.json,./coverage/coverage-test/coverage-final.json,./coverage/coverage-final.json
|
files: ./coverage/calculator/coverage-final.json,./coverage/coverage-test/coverage-final.json,./coverage/coverage-final.json
|
||||||
flags: version,${{ matrix.os }}
|
flags: version-${{ matrix.os }}
|
||||||
name: codecov-version
|
name: codecov-version
|
||||||
version: v9.1.0
|
version: v9.1.0
|
||||||
verbose: true
|
verbose: true
|
||||||
@@ -65,7 +65,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fail_ci_if_error: true
|
fail_ci_if_error: true
|
||||||
files: ./coverage/script/coverage-final.json
|
files: ./coverage/script/coverage-final.json
|
||||||
flags: script,macos-latest-xlarge
|
flags: script-macos-latest-xlarge
|
||||||
name: codecov-script
|
name: codecov-script
|
||||||
verbose: true
|
verbose: true
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
@@ -74,7 +74,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fail_ci_if_error: true
|
fail_ci_if_error: true
|
||||||
files: ./coverage/calculator/coverage-final.json,./coverage/coverage-test/coverage-final.json,./coverage/coverage-final.json
|
files: ./coverage/calculator/coverage-final.json,./coverage/coverage-test/coverage-final.json,./coverage/coverage-final.json
|
||||||
flags: demo,macos-latest-xlarge
|
flags: demo-macos-latest-xlarge
|
||||||
name: codecov-demo
|
name: codecov-demo
|
||||||
verbose: true
|
verbose: true
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
@@ -82,7 +82,7 @@ jobs:
|
|||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
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
|
||||||
use_oidc: true
|
use_oidc: true
|
||||||
verbose: true
|
verbose: true
|
||||||
@@ -91,7 +91,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fail_ci_if_error: true
|
fail_ci_if_error: true
|
||||||
files: ./coverage/calculator/coverage-final.json,./coverage/coverage-test/coverage-final.json,./coverage/coverage-final.json
|
files: ./coverage/calculator/coverage-final.json,./coverage/coverage-test/coverage-final.json,./coverage/coverage-final.json
|
||||||
flags: version,maxos-latest-xlarge
|
flags: version-maxos-latest-xlarge
|
||||||
name: codecov-version
|
name: codecov-version
|
||||||
version: v9.1.0
|
version: v9.1.0
|
||||||
verbose: true
|
verbose: true
|
||||||
@@ -112,7 +112,7 @@ jobs:
|
|||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
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
|
verbose: true
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
@@ -120,7 +120,7 @@ jobs:
|
|||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
files: ./coverage/calculator/coverage-final.json,./coverage/coverage-test/coverage-final.json,./coverage/coverage-final.json
|
files: ./coverage/calculator/coverage-final.json,./coverage/coverage-test/coverage-final.json,./coverage/coverage-final.json
|
||||||
flags: demo,${{ matrix.os }}
|
flags: demo-${{ matrix.os }}
|
||||||
name: codecov-demo
|
name: codecov-demo
|
||||||
verbose: true
|
verbose: true
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
@@ -128,7 +128,7 @@ jobs:
|
|||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
files: ./coverage/calculator/coverage-final.json,./coverage/coverage-test/coverage-final.json,./coverage/coverage-final.json
|
files: ./coverage/calculator/coverage-final.json,./coverage/coverage-test/coverage-final.json,./coverage/coverage-final.json
|
||||||
flags: version,${{ matrix.os }}
|
flags: version-${{ matrix.os }}
|
||||||
name: codecov-version
|
name: codecov-version
|
||||||
version: v9.1.0
|
version: v9.1.0
|
||||||
verbose: true
|
verbose: true
|
||||||
|
|||||||
2
.github/workflows/scorecards-analysis.yml
vendored
2
.github/workflows/scorecards-analysis.yml
vendored
@@ -57,6 +57,6 @@ jobs:
|
|||||||
|
|
||||||
# Upload the results to GitHub's code scanning dashboard.
|
# Upload the results to GitHub's code scanning dashboard.
|
||||||
- name: "Upload to code-scanning"
|
- name: "Upload to code-scanning"
|
||||||
uses: github/codeql-action/upload-sarif@v3.27.4 # v1.0.26
|
uses: github/codeql-action/upload-sarif@v3.27.5 # v1.0.26
|
||||||
with:
|
with:
|
||||||
sarif_file: results.sarif
|
sarif_file: results.sarif
|
||||||
|
|||||||
29
CHANGELOG.md
29
CHANGELOG.md
@@ -1,3 +1,32 @@
|
|||||||
|
## v5.1.1
|
||||||
|
### What's Changed
|
||||||
|
|
||||||
|
|
||||||
|
**Full Changelog**: https://github.com/codecov/codecov-action/compare/v5.1.0..v5.1.1
|
||||||
|
|
||||||
|
## v5.1.0
|
||||||
|
### What's Changed
|
||||||
|
* fix: hide unnecessary error on shasum by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1692
|
||||||
|
* build(deps): bump github/codeql-action from 3.27.4 to 3.27.5 by @app/dependabot in https://github.com/codecov/codecov-action/pull/1701
|
||||||
|
* chore(release): wrapper-0.0.29 by @app/codecov-releaser-app in https://github.com/codecov/codecov-action/pull/1713
|
||||||
|
|
||||||
|
|
||||||
|
**Full Changelog**: https://github.com/codecov/codecov-action/compare/v5.0.7..v5.1.0
|
||||||
|
|
||||||
|
## v5.0.7
|
||||||
|
### What's Changed
|
||||||
|
* fix: use HEAD_REPO by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1690
|
||||||
|
|
||||||
|
|
||||||
|
**Full Changelog**: https://github.com/codecov/codecov-action/compare/v5.0.6..v5.0.7
|
||||||
|
|
||||||
|
## v5.0.6
|
||||||
|
### What's Changed
|
||||||
|
* fix: update CODECOV_TOKEN and fix tokenless by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1688
|
||||||
|
|
||||||
|
|
||||||
|
**Full Changelog**: https://github.com/codecov/codecov-action/compare/v5.0.5..v5.0.6
|
||||||
|
|
||||||
## v5.0.5
|
## v5.0.5
|
||||||
### What's Changed
|
### What's Changed
|
||||||
* chore(release): wrapper-0.0.27 by @app/codecov-releaser-app in https://github.com/codecov/codecov-action/pull/1685
|
* chore(release): wrapper-0.0.27 by @app/codecov-releaser-app in https://github.com/codecov/codecov-action/pull/1685
|
||||||
|
|||||||
20
action.yml
20
action.yml
@@ -173,10 +173,13 @@ runs:
|
|||||||
# {"count":1984,"value":"***"}
|
# {"count":1984,"value":"***"}
|
||||||
CC_TOKEN=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=https://codecov.io" | cut -d\" -f6)
|
CC_TOKEN=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=https://codecov.io" | cut -d\" -f6)
|
||||||
echo "CC_TOKEN=$CC_TOKEN" >> "$GITHUB_ENV"
|
echo "CC_TOKEN=$CC_TOKEN" >> "$GITHUB_ENV"
|
||||||
|
elif [ -n "${{ env.CODECOV_TOKEN }}" ];
|
||||||
|
then
|
||||||
|
echo "CC_TOKEN=${{ env.CODECOV_TOKEN }}" >> "$GITHUB_ENV"
|
||||||
else
|
else
|
||||||
if [ -n ${{ inputs.token }} ];
|
if [ -n ${{ inputs.token }} ];
|
||||||
then
|
then
|
||||||
CC_TOKEN=$(echo ${{ inputs.token }} | tr -d '\n')
|
CC_TOKEN=$(echo "${{ inputs.token }}" | tr -d '\n')
|
||||||
echo "CC_TOKEN=$CC_TOKEN" >> "$GITHUB_ENV"
|
echo "CC_TOKEN=$CC_TOKEN" >> "$GITHUB_ENV"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@@ -184,7 +187,7 @@ runs:
|
|||||||
- name: Override branch for forks
|
- name: Override branch for forks
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
if [ -z "$CC_BRANCH" ] && [ -z "$CC_TOKEN" ] && [ -n "$GITHUB_EVENT_PULL_REQUEST_REPO_FULL_NAME"] && [ "${GITHUB_EVENT_PULL_REQUEST_REPO_FULL_NAME}" != "$GITHUB_REPOSITORY" ];
|
if [ -z "$CC_BRANCH" ] && [ -z "$CC_TOKEN" ] && [ -n "$GITHUB_EVENT_PULL_REQUEST_HEAD_REPO_FULL_NAME" ] && [ "${GITHUB_EVENT_PULL_REQUEST_HEAD_REPO_FULL_NAME}" != "$GITHUB_REPOSITORY" ];
|
||||||
then
|
then
|
||||||
echo -e "\033[0;32m==>\033[0m Fork detected, tokenless uploading used"
|
echo -e "\033[0;32m==>\033[0m Fork detected, tokenless uploading used"
|
||||||
TOKENLESS="$GITHUB_EVENT_PULL_REQUEST_HEAD_LABEL"
|
TOKENLESS="$GITHUB_EVENT_PULL_REQUEST_HEAD_LABEL"
|
||||||
@@ -196,7 +199,7 @@ runs:
|
|||||||
env:
|
env:
|
||||||
CC_BRANCH: ${{ inputs.override_branch }}
|
CC_BRANCH: ${{ inputs.override_branch }}
|
||||||
GITHUB_EVENT_PULL_REQUEST_HEAD_LABEL: ${{ github.event.pull_request.head.label }}
|
GITHUB_EVENT_PULL_REQUEST_HEAD_LABEL: ${{ github.event.pull_request.head.label }}
|
||||||
GITHUB_EVENT_PULL_REQUEST_REPO_FULL_NAME: ${{ github.event.pull_request.repo.full_name }}
|
GITHUB_EVENT_PULL_REQUEST_HEAD_REPO_FULL_NAME: ${{ github.event.pull_request.head.repo.full_name }}
|
||||||
GITHUB_REPOSITORY: ${{ github.repository }}
|
GITHUB_REPOSITORY: ${{ github.repository }}
|
||||||
|
|
||||||
- name: Override commits and pr for pull requests
|
- name: Override commits and pr for pull requests
|
||||||
@@ -261,3 +264,14 @@ runs:
|
|||||||
CC_VERBOSE: ${{ inputs.verbose }}
|
CC_VERBOSE: ${{ inputs.verbose }}
|
||||||
CC_VERSION: ${{ inputs.version }}
|
CC_VERSION: ${{ inputs.version }}
|
||||||
CC_YML_PATH: ${{ inputs.codecov_yml_path }}
|
CC_YML_PATH: ${{ inputs.codecov_yml_path }}
|
||||||
|
|
||||||
|
- name: Error
|
||||||
|
shell: bash
|
||||||
|
run: exit 1
|
||||||
|
|
||||||
|
- name: Gracefully exit
|
||||||
|
if: ${{ failure() && inputs.fail_ci_if_error != 'true' }}
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
echo -e "\033[0;32m==>\033[0m Exiting gracefully..."
|
||||||
|
exit 0
|
||||||
|
|||||||
12
dist/codecov.sh
vendored
12
dist/codecov.sh
vendored
@@ -1,12 +1,12 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
CC_WRAPPER_VERSION="0.0.28"
|
CC_WRAPPER_VERSION="0.0.30"
|
||||||
set +u
|
set +u
|
||||||
say() {
|
say() {
|
||||||
echo -e "$1"
|
echo -e "$1"
|
||||||
}
|
}
|
||||||
exit_if_error() {
|
exit_if_error() {
|
||||||
say "$r==> $1$x"
|
say "$r==> $1$x"
|
||||||
if [ $CC_FAIL_ON_ERROR = true ];
|
if [ "$CC_FAIL_ON_ERROR" = true ];
|
||||||
then
|
then
|
||||||
say "$r Exiting...$x"
|
say "$r Exiting...$x"
|
||||||
exit 1;
|
exit 1;
|
||||||
@@ -84,10 +84,10 @@ else
|
|||||||
cc_url="$cc_url/${CC_VERSION}"
|
cc_url="$cc_url/${CC_VERSION}"
|
||||||
cc_url="$cc_url/${cc_os}/${cc_filename}"
|
cc_url="$cc_url/${cc_os}/${cc_filename}"
|
||||||
say "$g ->$x Downloading $b${cc_url}$x"
|
say "$g ->$x Downloading $b${cc_url}$x"
|
||||||
curl -Os $cc_url
|
curl -Os "$cc_url"
|
||||||
say "$g==>$x Finishing downloading $b${cc_os}:${CC_VERSION}$x"
|
say "$g==>$x Finishing downloading $b${cc_os}:${CC_VERSION}$x"
|
||||||
version_url="https://cli.codecov.io/${cc_os}/${CC_VERSION}"
|
version_url="https://cli.codecov.io/api/${cc_os}/${CC_VERSION}"
|
||||||
version=$(curl -s $version_url -H "Accept:application/json" | jq -r '.version')
|
version=$(curl -s "$version_url" -H "Accept:application/json" | jq -r '.version')
|
||||||
say " Version: $b$version$x"
|
say " Version: $b$version$x"
|
||||||
say " "
|
say " "
|
||||||
fi
|
fi
|
||||||
@@ -123,7 +123,7 @@ fi
|
|||||||
cc_cli_args=()
|
cc_cli_args=()
|
||||||
cc_cli_args+=( $(k_arg AUTO_LOAD_PARAMS_FROM) $(v_arg AUTO_LOAD_PARAMS_FROM))
|
cc_cli_args+=( $(k_arg AUTO_LOAD_PARAMS_FROM) $(v_arg AUTO_LOAD_PARAMS_FROM))
|
||||||
cc_cli_args+=( $(k_arg ENTERPRISE_URL) $(v_arg ENTERPRISE_URL))
|
cc_cli_args+=( $(k_arg ENTERPRISE_URL) $(v_arg ENTERPRISE_URL))
|
||||||
if [ -n $CC_YML_PATH ]
|
if [ -n "$CC_YML_PATH" ]
|
||||||
then
|
then
|
||||||
cc_cli_args+=( "--codecov-yml-path" )
|
cc_cli_args+=( "--codecov-yml-path" )
|
||||||
cc_cli_args+=( "$CC_YML_PATH" )
|
cc_cli_args+=( "$CC_YML_PATH" )
|
||||||
|
|||||||
Submodule src/scripts updated: c63f5c98c0...8d3a8c6c97
@@ -1 +1 @@
|
|||||||
CODECOV_ACTION_VERSION="5.0.5"
|
CODECOV_ACTION_VERSION="5.1.1"
|
||||||
|
|||||||
Reference in New Issue
Block a user