mirror of
https://github.com/codecov/codecov-action.git
synced 2025-12-08 16:16:24 +00:00
Compare commits
7 Commits
v5.1.2
...
release/wr
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
52bf313b6b | ||
|
|
6c5b693a58 | ||
|
|
ad45165bd4 | ||
|
|
79ee03789c | ||
|
|
25fe46e17d | ||
|
|
54a0566d1c | ||
|
|
adfacf2d27 |
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.9
|
uses: github/codeql-action/init@v3.28.1
|
||||||
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.9
|
uses: github/codeql-action/autobuild@v3.28.1
|
||||||
|
|
||||||
# ℹ️ 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.9
|
uses: github/codeql-action/analyze@v3.28.1
|
||||||
|
|||||||
4
.github/workflows/scorecards-analysis.yml
vendored
4
.github/workflows/scorecards-analysis.yml
vendored
@@ -49,7 +49,7 @@ jobs:
|
|||||||
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
|
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
|
||||||
# format to the repository Actions tab.
|
# format to the repository Actions tab.
|
||||||
- name: "Upload artifact"
|
- name: "Upload artifact"
|
||||||
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
|
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
|
||||||
with:
|
with:
|
||||||
name: SARIF file
|
name: SARIF file
|
||||||
path: results.sarif
|
path: results.sarif
|
||||||
@@ -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.9 # v1.0.26
|
uses: github/codeql-action/upload-sarif@v3.28.1 # v1.0.26
|
||||||
with:
|
with:
|
||||||
sarif_file: results.sarif
|
sarif_file: results.sarif
|
||||||
|
|||||||
@@ -106,8 +106,7 @@ Codecov's Action supports inputs from the user. These inputs, along with their d
|
|||||||
| Input | Description | Required |
|
| Input | Description | Required |
|
||||||
| :--- | :--- | :---: |
|
| :--- | :--- | :---: |
|
||||||
| `binary` | The file location of a pre-downloaded version of the CLI. If specified, integrity checking will be bypassed. | Optional
|
| `binary` | The file location of a pre-downloaded version of the CLI. If specified, integrity checking will be bypassed. | Optional
|
||||||
| `codecov_yml_path` | The location of the codecov.yml file. This is crrently ONLY used for automated test selection (https://docs.codecov.com/docs/getting-started-with-ats). Note that for all other cases, the Codecov yaml will need to be locate
|
| `codecov_yml_path` | The location of the codecov.yml file. This is crrently ONLY used for automated test selection (https://docs.codecov.com/docs/getting-started-with-ats). Note that for all other cases, the Codecov yaml will need to be located as described here: https://docs.codecov.com/docs/codecov-yaml#can-i-name-the-file-codecovyml | Optional
|
||||||
d as described here: https://docs.codecov.com/docs/codecov-yaml#can-i-name-the-file-codecovyml | Optional
|
|
||||||
| `commit_parent` | SHA (with 40 chars) of what should be the parent of this commit. | Optional
|
| `commit_parent` | SHA (with 40 chars) of what should be the parent of this commit. | Optional
|
||||||
| `directory` | Folder to search for coverage files. Default to the current working directory | Optional
|
| `directory` | Folder to search for coverage files. Default to the current working directory | Optional
|
||||||
| `disable_file_fixes` | Disable file fixes to ignore common lines from coverage (e.g. blank lines or empty brackets). Read more here https://docs.codecov.com/docs/fixing-reports | Optional
|
| `disable_file_fixes` | Disable file fixes to ignore common lines from coverage (e.g. blank lines or empty brackets). Read more here https://docs.codecov.com/docs/fixing-reports | Optional
|
||||||
|
|||||||
@@ -28,6 +28,10 @@ inputs:
|
|||||||
description: 'Disable setting safe directory. Set to true to disable.'
|
description: 'Disable setting safe directory. Set to true to disable.'
|
||||||
required: false
|
required: false
|
||||||
default: 'false'
|
default: 'false'
|
||||||
|
disable_telem:
|
||||||
|
description: 'Disable sending telemetry data to Codecov. Set to true to disable.'
|
||||||
|
required: false
|
||||||
|
default: 'false'
|
||||||
dry_run:
|
dry_run:
|
||||||
description: "Don't upload files to Codecov"
|
description: "Don't upload files to Codecov"
|
||||||
required: false
|
required: false
|
||||||
@@ -188,7 +192,7 @@ runs:
|
|||||||
then
|
then
|
||||||
# {"count":1984,"value":"***"}
|
# {"count":1984,"value":"***"}
|
||||||
echo -e "\033[0;32m==>\033[0m Requesting OIDC token from '$ACTIONS_ID_TOKEN_REQUEST_URL'"
|
echo -e "\033[0;32m==>\033[0m Requesting OIDC token from '$ACTIONS_ID_TOKEN_REQUEST_URL'"
|
||||||
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=$CC_OIDC_AUDIENCE" | cut -d\" -f6)
|
||||||
echo "CC_TOKEN=$CC_TOKEN" >> "$GITHUB_ENV"
|
echo "CC_TOKEN=$CC_TOKEN" >> "$GITHUB_ENV"
|
||||||
elif [ -n "${{ env.CODECOV_TOKEN }}" ];
|
elif [ -n "${{ env.CODECOV_TOKEN }}" ];
|
||||||
then
|
then
|
||||||
@@ -202,6 +206,8 @@ runs:
|
|||||||
echo "CC_TOKEN=$CC_TOKEN" >> "$GITHUB_ENV"
|
echo "CC_TOKEN=$CC_TOKEN" >> "$GITHUB_ENV"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
env:
|
||||||
|
CC_OIDC_AUDIENCE: ${{ inputs.url || 'https://codecov.io' }}
|
||||||
|
|
||||||
- name: Override branch for forks
|
- name: Override branch for forks
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -254,6 +260,7 @@ runs:
|
|||||||
CC_DIR: ${{ inputs.directory }}
|
CC_DIR: ${{ inputs.directory }}
|
||||||
CC_DISABLE_FILE_FIXES: ${{ inputs.disable_file_fixes }}
|
CC_DISABLE_FILE_FIXES: ${{ inputs.disable_file_fixes }}
|
||||||
CC_DISABLE_SEARCH: ${{ inputs.disable_search }}
|
CC_DISABLE_SEARCH: ${{ inputs.disable_search }}
|
||||||
|
CC_DISABLE_TELEM: ${{ inputs.disable_telem }}
|
||||||
CC_DRY_RUN: ${{ inputs.dry_run }}
|
CC_DRY_RUN: ${{ inputs.dry_run }}
|
||||||
CC_ENTERPRISE_URL: ${{ inputs.url }}
|
CC_ENTERPRISE_URL: ${{ inputs.url }}
|
||||||
CC_ENV: ${{ inputs.env_vars }}
|
CC_ENV: ${{ inputs.env_vars }}
|
||||||
|
|||||||
12
dist/codecov.sh
vendored
12
dist/codecov.sh
vendored
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
CC_WRAPPER_VERSION="0.0.31"
|
CC_WRAPPER_VERSION="0.0.32"
|
||||||
set +u
|
set +u
|
||||||
say() {
|
say() {
|
||||||
echo -e "$1"
|
echo -e "$1"
|
||||||
@@ -117,6 +117,15 @@ CC_PUBLIC_PGP_KEY=$(curl -s https://keybase.io/codecovsecurity/pgp_keys.asc)
|
|||||||
say "$g==>$x CLI integrity verified"
|
say "$g==>$x CLI integrity verified"
|
||||||
say
|
say
|
||||||
fi
|
fi
|
||||||
|
if [ -n "$CC_BINARY_LOCATION" ];
|
||||||
|
then
|
||||||
|
mkdir -p "$CC_BINARY_LOCATION" && mv "$cc_filename" $_
|
||||||
|
say "$g==>$x Codecov binary moved to ${CC_BINARY_LOCATION}"
|
||||||
|
fi
|
||||||
|
if [ "$CC_DOWNLOAD_ONLY" = "true" ];
|
||||||
|
then
|
||||||
|
say "$g==>$x Codecov download only called. Exiting..."
|
||||||
|
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))
|
||||||
@@ -125,6 +134,7 @@ 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" )
|
||||||
fi
|
fi
|
||||||
|
cc_cli_args+=( $(write_truthy_args CC_DISABLE_TELEM) )
|
||||||
cc_cli_args+=( $(write_truthy_args CC_VERBOSE) )
|
cc_cli_args+=( $(write_truthy_args CC_VERBOSE) )
|
||||||
cc_uc_args=()
|
cc_uc_args=()
|
||||||
# Args for create commit
|
# Args for create commit
|
||||||
|
|||||||
Submodule src/scripts updated: 8e89f7cbab...112aab5a62
Reference in New Issue
Block a user