├── .github ├── dependabot.yml └── workflows │ ├── codeql-analysis.yml │ ├── enforce-license-compliance.yml │ ├── main.yml │ └── scorecards-analysis.yml ├── .gitignore ├── .gitmodules ├── CHANGELOG.md ├── CONTRIBUTING.md ├── LICENSE ├── Makefile ├── README.md ├── action.yml ├── changelog.py ├── demo ├── calculator │ ├── calculator.test.ts │ └── calculator.ts └── coverage-test │ ├── coverage.test.ts │ └── coverage.ts ├── dist └── codecov.sh ├── hooks └── pre-commit ├── install.sh └── src └── version /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | - package-ecosystem: npm 4 | directory: / 5 | schedule: 6 | interval: daily 7 | open-pull-requests-limit: 10 8 | - package-ecosystem: github-actions 9 | directory: / 10 | schedule: 11 | interval: weekly 12 | open-pull-requests-limit: 10 13 | -------------------------------------------------------------------------------- /.github/workflows/codeql-analysis.yml: -------------------------------------------------------------------------------- 1 | 2 | # 3 | # You may wish to alter this file to override the set of languages analyzed, 4 | # or to provide custom queries or build logic. 5 | # 6 | # ******** NOTE ******** 7 | # We have attempted to detect the languages in your repository. Please check 8 | # the `language` matrix defined below to confirm you have the correct set of 9 | # supported CodeQL languages. 10 | # 11 | name: "CodeQL" 12 | 13 | on: 14 | push: 15 | branches: [ main ] 16 | pull_request: 17 | # The branches below must be a subset of the branches above 18 | branches: [ main ] 19 | schedule: 20 | - cron: '24 6 * * 5' 21 | 22 | jobs: 23 | analyze: 24 | name: Analyze 25 | runs-on: ubuntu-latest 26 | permissions: 27 | actions: read 28 | contents: read 29 | security-events: write 30 | 31 | strategy: 32 | fail-fast: false 33 | matrix: 34 | language: [ 'javascript' ] 35 | # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] 36 | # Learn more about CodeQL language support at https://git.io/codeql-language-support 37 | 38 | steps: 39 | - name: Checkout repository 40 | uses: actions/checkout@v4.2.2 41 | 42 | # Initializes the CodeQL tools for scanning. 43 | - name: Initialize CodeQL 44 | uses: github/codeql-action/init@v3.28.18 45 | with: 46 | languages: ${{ matrix.language }} 47 | # If you wish to specify custom queries, you can do so here or in a config file. 48 | # By default, queries listed here will override any specified in a config file. 49 | # Prefix the list here with "+" to use these queries and those in the config file. 50 | # queries: ./path/to/local/query, your-org/your-repo/queries@main 51 | 52 | # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). 53 | # If this step fails, then you should remove it and run the build manually (see below) 54 | - name: Autobuild 55 | uses: github/codeql-action/autobuild@v3.28.18 56 | 57 | # ℹ️ Command-line programs to run using the OS shell. 58 | # 📚 https://git.io/JvXDl 59 | 60 | # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines 61 | # and modify them (or add more) to build your code if your project 62 | # uses a compiled language 63 | 64 | #- run: | 65 | # make bootstrap 66 | # make release 67 | 68 | - name: Perform CodeQL Analysis 69 | uses: github/codeql-action/analyze@v3.28.18 70 | -------------------------------------------------------------------------------- /.github/workflows/enforce-license-compliance.yml: -------------------------------------------------------------------------------- 1 | name: Enforce License Compliance 2 | 3 | on: 4 | pull_request: 5 | branches: [main] 6 | 7 | jobs: 8 | enforce-license-compliance: 9 | runs-on: ubuntu-latest 10 | steps: 11 | - name: 'Enforce License Compliance' 12 | uses: getsentry/action-enforce-license-compliance@57ba820387a1a9315a46115ee276b2968da51f3d # main 13 | with: 14 | fossa_api_key: ${{ secrets.FOSSA_API_KEY }} 15 | -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: Workflow for Codecov Action 3 | on: [push, pull_request] 4 | permissions: 5 | id-token: write 6 | contents: read 7 | jobs: 8 | run: 9 | runs-on: ${{ matrix.os }} 10 | strategy: 11 | matrix: 12 | os: [macos-latest, windows-latest, ubuntu-latest] 13 | steps: 14 | - name: Checkout 15 | uses: actions/checkout@v4.2.2 16 | with: 17 | submodules: 'true' 18 | - name: Install dependencies 19 | run: pip install -r src/scripts/app/requirements.txt 20 | - name: Run tests and collect coverage 21 | run: pytest src/scripts/app/ --cov 22 | - name: Upload coverage to Codecov (script) 23 | uses: ./ 24 | with: 25 | fail_ci_if_error: true 26 | files: ./coverage/script/coverage-final.json 27 | flags: script-${{ matrix.os }} 28 | name: codecov-script 29 | verbose: true 30 | token: ${{ secrets.CODECOV_TOKEN }} 31 | - name: Upload coverage to Codecov (demo) 32 | uses: ./ 33 | with: 34 | fail_ci_if_error: true 35 | files: ./coverage/calculator/coverage-final.json,./coverage/coverage-test/coverage-final.json,./coverage/coverage-final.json 36 | flags: demo-${{ matrix.os }} 37 | name: codecov-demo 38 | verbose: true 39 | token: ${{ secrets.CODECOV_TOKEN }} 40 | - name: Upload coverage to Codecov (version) 41 | uses: ./ 42 | with: 43 | fail_ci_if_error: true 44 | files: ./coverage/calculator/coverage-final.json,./coverage/coverage-test/coverage-final.json,./coverage/coverage-final.json 45 | flags: version-${{ matrix.os }} 46 | name: codecov-version 47 | version: v9.1.0 48 | verbose: true 49 | token: ${{ secrets.CODECOV_TOKEN }} 50 | 51 | run-macos-latest-xlarge: 52 | if: github.head.repo.full_name == 'codecov/codecov-action' 53 | runs-on: macos-latest-xlarge 54 | steps: 55 | - name: Checkout 56 | uses: actions/checkout@v4.2.2 57 | with: 58 | submodules: 'true' 59 | - name: Install dependencies 60 | run: pip install -r src/scripts/app/requirements.txt 61 | - name: Run tests and collect coverage 62 | run: pytest src/scripts/app/ --cov 63 | - name: Upload coverage to Codecov (script) 64 | uses: ./ 65 | with: 66 | fail_ci_if_error: true 67 | files: ./coverage/script/coverage-final.json 68 | flags: script-macos-latest-xlarge 69 | name: codecov-script 70 | verbose: true 71 | token: ${{ secrets.CODECOV_TOKEN }} 72 | - name: Upload coverage to Codecov (demo) 73 | uses: ./ 74 | with: 75 | fail_ci_if_error: true 76 | files: ./coverage/calculator/coverage-final.json,./coverage/coverage-test/coverage-final.json,./coverage/coverage-final.json 77 | flags: demo-macos-latest-xlarge 78 | name: codecov-demo 79 | verbose: true 80 | token: ${{ secrets.CODECOV_TOKEN }} 81 | - name: Upload coverage to Codecov (oidc) 82 | uses: ./ 83 | with: 84 | files: ./coverage/script/coverage-final.json 85 | flags: script-${{ matrix.os }} 86 | name: codecov-script 87 | use_oidc: true 88 | verbose: true 89 | - name: Upload coverage to Codecov (version) 90 | uses: ./ 91 | with: 92 | fail_ci_if_error: true 93 | files: ./coverage/calculator/coverage-final.json,./coverage/coverage-test/coverage-final.json,./coverage/coverage-final.json 94 | flags: version-maxos-latest-xlarge 95 | name: codecov-version 96 | version: v9.1.0 97 | verbose: true 98 | token: ${{ secrets.CODECOV_TOKEN }} 99 | 100 | run-container: 101 | runs-on: ubuntu-latest 102 | container: python:latest 103 | steps: 104 | - name: Checkout 105 | uses: actions/checkout@v4.2.2 106 | with: 107 | submodules: 'true' 108 | - name: Install deps 109 | run: | 110 | apt-get install git 111 | - name: Upload coverage to Codecov (script) 112 | uses: ./ 113 | with: 114 | files: ./coverage/script/coverage-final.json 115 | flags: script-${{ matrix.os }} 116 | name: codecov-script 117 | verbose: true 118 | token: ${{ secrets.CODECOV_TOKEN }} 119 | - name: Upload coverage to Codecov (demo) 120 | uses: ./ 121 | with: 122 | files: ./coverage/calculator/coverage-final.json,./coverage/coverage-test/coverage-final.json,./coverage/coverage-final.json 123 | flags: demo-${{ matrix.os }} 124 | name: codecov-demo 125 | verbose: true 126 | token: ${{ secrets.CODECOV_TOKEN }} 127 | - name: Upload coverage to Codecov (version) 128 | uses: ./ 129 | with: 130 | files: ./coverage/calculator/coverage-final.json,./coverage/coverage-test/coverage-final.json,./coverage/coverage-final.json 131 | flags: version-${{ matrix.os }} 132 | name: codecov-version 133 | version: v9.1.0 134 | verbose: true 135 | token: ${{ secrets.CODECOV_TOKEN }} 136 | -------------------------------------------------------------------------------- /.github/workflows/scorecards-analysis.yml: -------------------------------------------------------------------------------- 1 | name: Scorecards supply-chain security 2 | on: 3 | # Only the default branch is supported. 4 | branch_protection_rule: 5 | schedule: 6 | - cron: '43 20 * * 1' 7 | push: 8 | branches: [ main ] 9 | 10 | # Declare default permissions as read only. 11 | permissions: read-all 12 | 13 | jobs: 14 | analysis: 15 | if: github.repository == 'codecov/codecov-action' 16 | name: Scorecards analysis 17 | runs-on: ubuntu-latest 18 | permissions: 19 | # Needed to upload the results to code-scanning dashboard. 20 | security-events: write 21 | # Used to receive a badge. (Upcoming feature) 22 | id-token: write 23 | actions: read 24 | contents: read 25 | 26 | steps: 27 | - name: "Checkout code" 28 | uses: actions/checkout@v4.2.2 # v3.0.0 29 | with: 30 | persist-credentials: false 31 | 32 | - name: "Run analysis" 33 | uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1 34 | with: 35 | results_file: results.sarif 36 | results_format: sarif 37 | # (Optional) Read-only PAT token. Uncomment the `repo_token` line below if: 38 | # - you want to enable the Branch-Protection check on a *public* repository, or 39 | # - you are installing Scorecards on a *private* repository 40 | # To create the PAT, follow the steps in https://github.com/ossf/scorecard-action#authentication-with-pat. 41 | # repo_token: ${{ secrets.SCORECARD_READ_TOKEN }} 42 | 43 | # Publish the results for public repositories to enable scorecard badges. For more details, see 44 | # https://github.com/ossf/scorecard-action#publishing-results. 45 | # For private repositories, `publish_results` will automatically be set to `false`, regardless 46 | # of the value entered here. 47 | publish_results: true 48 | 49 | # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF 50 | # format to the repository Actions tab. 51 | - name: "Upload artifact" 52 | uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 53 | with: 54 | name: SARIF file 55 | path: results.sarif 56 | retention-days: 5 57 | 58 | # Upload the results to GitHub's code scanning dashboard. 59 | - name: "Upload to code-scanning" 60 | uses: github/codeql-action/upload-sarif@v3.28.18 # v1.0.26 61 | with: 62 | sarif_file: results.sarif 63 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ### Node ### 2 | # Logs 3 | logs 4 | *.log 5 | npm-debug.log* 6 | yarn-debug.log* 7 | yarn-error.log* 8 | lerna-debug.log* 9 | 10 | # Diagnostic reports (https://nodejs.org/api/report.html) 11 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json 12 | 13 | # Runtime data 14 | pids 15 | *.pid 16 | *.seed 17 | *.pid.lock 18 | 19 | # Directory for instrumented libs generated by jscoverage/JSCover 20 | lib-cov 21 | 22 | # Coverage directory used by tools like istanbul 23 | coverage 24 | *.lcov 25 | 26 | # nyc test coverage 27 | .nyc_output 28 | 29 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 30 | .grunt 31 | 32 | # Bower dependency directory (https://bower.io/) 33 | bower_components 34 | 35 | # node-waf configuration 36 | .lock-wscript 37 | 38 | # Compiled binary addons (https://nodejs.org/api/addons.html) 39 | build/Release 40 | 41 | # Dependency directories 42 | node_modules/ 43 | jspm_packages/ 44 | 45 | # TypeScript v1 declaration files 46 | typings/ 47 | 48 | # TypeScript cache 49 | *.tsbuildinfo 50 | 51 | # Optional npm cache directory 52 | .npm 53 | 54 | # Optional eslint cache 55 | .eslintcache 56 | 57 | # Optional REPL history 58 | .node_repl_history 59 | 60 | # Output of 'npm pack' 61 | *.tgz 62 | 63 | # Yarn Integrity file 64 | .yarn-integrity 65 | 66 | # dotenv environment variables file 67 | .env 68 | .env.test 69 | 70 | # parcel-bundler cache (https://parceljs.org/) 71 | .cache 72 | 73 | # next.js build output 74 | .next 75 | 76 | # nuxt.js build output 77 | .nuxt 78 | 79 | # react / gatsby 80 | public/ 81 | 82 | # vuepress build output 83 | .vuepress/dist 84 | 85 | # Serverless directories 86 | .serverless/ 87 | 88 | # FuseBox cache 89 | .fusebox/ 90 | 91 | # DynamoDB Local files 92 | .dynamodb/ 93 | 94 | # macOS Finder metadata 95 | .DS_Store 96 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "src/scripts"] 2 | path = src/scripts 3 | url = https://github.com/codecov/wrapper 4 | branch = main 5 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## v5.4.3 2 | 3 | ### What's Changed 4 | * build(deps): bump github/codeql-action from 3.28.13 to 3.28.17 by @app/dependabot in https://github.com/codecov/codecov-action/pull/1822 5 | * fix: OIDC on forks by @joseph-sentry in https://github.com/codecov/codecov-action/pull/1823 6 | 7 | 8 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v5.4.2..v5.4.3 9 | 10 | 11 | ## v5.4.2 12 | 13 | ### What's Changed 14 | 15 | 16 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v5.4.1..v5.4.2 17 | 18 | 19 | ## v5.4.1 20 | 21 | ### What's Changed 22 | * fix: use the github core methods by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1807 23 | * build(deps): bump github/codeql-action from 3.28.12 to 3.28.13 by @app/dependabot in https://github.com/codecov/codecov-action/pull/1803 24 | * build(deps): bump github/codeql-action from 3.28.11 to 3.28.12 by @app/dependabot in https://github.com/codecov/codecov-action/pull/1797 25 | * build(deps): bump actions/upload-artifact from 4.6.1 to 4.6.2 by @app/dependabot in https://github.com/codecov/codecov-action/pull/1798 26 | * chore(release): wrapper -0.2.1 by @app/codecov-releaser-app in https://github.com/codecov/codecov-action/pull/1788 27 | * build(deps): bump github/codeql-action from 3.28.10 to 3.28.11 by @app/dependabot in https://github.com/codecov/codecov-action/pull/1786 28 | 29 | 30 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v5.4.0..v5.4.1 31 | 32 | 33 | ## v5.4.0 34 | 35 | ### What's Changed 36 | * update wrapper submodule to 0.2.0, add recurse_submodules arg by @matt-codecov in https://github.com/codecov/codecov-action/pull/1780 37 | * build(deps): bump actions/upload-artifact from 4.6.0 to 4.6.1 by @app/dependabot in https://github.com/codecov/codecov-action/pull/1775 38 | * build(deps): bump ossf/scorecard-action from 2.4.0 to 2.4.1 by @app/dependabot in https://github.com/codecov/codecov-action/pull/1776 39 | * build(deps): bump github/codeql-action from 3.28.9 to 3.28.10 by @app/dependabot in https://github.com/codecov/codecov-action/pull/1777 40 | * Clarify in README that `use_pypi` bypasses integrity checks too by @webknjaz in https://github.com/codecov/codecov-action/pull/1773 41 | * Fix use of safe.directory inside containers by @Flamefire in https://github.com/codecov/codecov-action/pull/1768 42 | * Fix description for report_type input by @craigscott-crascit in https://github.com/codecov/codecov-action/pull/1770 43 | * build(deps): bump github/codeql-action from 3.28.8 to 3.28.9 by @app/dependabot in https://github.com/codecov/codecov-action/pull/1765 44 | * Fix a typo in the example by @miranska in https://github.com/codecov/codecov-action/pull/1758 45 | * build(deps): bump github/codeql-action from 3.28.5 to 3.28.8 by @app/dependabot in https://github.com/codecov/codecov-action/pull/1757 46 | * build(deps): bump github/codeql-action from 3.28.1 to 3.28.5 by @app/dependabot in https://github.com/codecov/codecov-action/pull/1753 47 | 48 | 49 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v5.3.1..v5.4.0 50 | 51 | 52 | ## v5.3.1 53 | 54 | ### What's Changed 55 | 56 | 57 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v5.3.0..v5.3.1 58 | 59 | 60 | ## v5.3.0 61 | 62 | ### What's Changed 63 | 64 | 65 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v5.2.0..v5.3.0 66 | 67 | 68 | ## v5.2.0 69 | 70 | ### What's Changed 71 | * Fix typo in README by @tserg in https://github.com/codecov/codecov-action/pull/1747 72 | * Th/add commands by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1745 73 | * use correct audience when requesting oidc token by @juho9000 in https://github.com/codecov/codecov-action/pull/1744 74 | * build(deps): bump github/codeql-action from 3.27.9 to 3.28.1 by @app/dependabot in https://github.com/codecov/codecov-action/pull/1742 75 | * build(deps): bump actions/upload-artifact from 4.4.3 to 4.6.0 by @app/dependabot in https://github.com/codecov/codecov-action/pull/1743 76 | * chore(deps): bump wrapper to 0.0.32 by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1740 77 | * feat: add disable-telem feature by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1739 78 | * fix: remove erroneous linebreak in readme by @Vampire in https://github.com/codecov/codecov-action/pull/1734 79 | 80 | 81 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v5.1.2..v5.2.0 82 | 83 | 84 | ## v5.1.2 85 | 86 | ### What's Changed 87 | * fix: update statment by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1726 88 | * fix: update action script by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1725 89 | * fix: prevent oidc on tokenless due to permissioning by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1724 90 | * chore(release): wrapper-0.0.31 by @app/codecov-releaser-app in https://github.com/codecov/codecov-action/pull/1723 91 | * Put quotes around `${{ inputs.token }}` in `action.yml` by @jwodder in https://github.com/codecov/codecov-action/pull/1721 92 | * build(deps): bump github/codeql-action from 3.27.6 to 3.27.9 by @app/dependabot in https://github.com/codecov/codecov-action/pull/1722 93 | * Remove mistake from options table by @Acconut in https://github.com/codecov/codecov-action/pull/1718 94 | * build(deps): bump github/codeql-action from 3.27.5 to 3.27.6 by @app/dependabot in https://github.com/codecov/codecov-action/pull/1717 95 | 96 | 97 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v5.1.1..v5.1.2 98 | 99 | 100 | ## v5.1.1 101 | ### What's Changed 102 | 103 | 104 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v5.1.0..v5.1.1 105 | 106 | ## v5.1.0 107 | ### What's Changed 108 | * fix: hide unnecessary error on shasum by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1692 109 | * 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 110 | * chore(release): wrapper-0.0.29 by @app/codecov-releaser-app in https://github.com/codecov/codecov-action/pull/1713 111 | 112 | 113 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v5.0.7..v5.1.0 114 | 115 | ## v5.0.7 116 | ### What's Changed 117 | * fix: use HEAD_REPO by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1690 118 | 119 | 120 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v5.0.6..v5.0.7 121 | 122 | ## v5.0.6 123 | ### What's Changed 124 | * fix: update CODECOV_TOKEN and fix tokenless by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1688 125 | 126 | 127 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v5.0.5..v5.0.6 128 | 129 | ## v5.0.5 130 | ### What's Changed 131 | * chore(release): wrapper-0.0.27 by @app/codecov-releaser-app in https://github.com/codecov/codecov-action/pull/1685 132 | 133 | 134 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v5.0.4..v5.0.5 135 | 136 | ## v5.0.4 137 | ### What's Changed 138 | * chore(deps): bump wrapper to 0.0.26 by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1681 139 | * fix: strip out a trailing \/n from input tokens by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1679 140 | * fix: add action version by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1678 141 | 142 | 143 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v5.0.3..v5.0.4 144 | 145 | ## v5.0.3 146 | ### What's Changed 147 | * fix: update OIDC audience by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1675 148 | * fix: use double-quotes for OIDC by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1669 149 | * fix: prevent always setting tokenless to be true by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1673 150 | * fix: update CHANGELOG and automate by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1674 151 | * fix: bump to v5 and update README by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1655 152 | * build(deps): bump github/codeql-action from 3.27.0 to 3.27.4 by @app/dependabot in https://github.com/codecov/codecov-action/pull/1665 153 | * fix: typo in `inputs.disable_safe_directory` by @mkroening in https://github.com/codecov/codecov-action/pull/1666 154 | 155 | 156 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v5.0.2..v5.0.3 157 | 158 | ## v5.0.2 159 | ### What's Changed 160 | * fix: override commit and pr values for PR cases by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1657 161 | 162 | 163 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v5.0.1...v5.0.2 164 | 165 | ## v5.0.1 166 | ### What's Changed 167 | * fix: use marketplace v5 badge by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1646 168 | * fix: update tokenless branch logic by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1650 169 | * chore(release): 5.0.1 by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1656 170 | 171 | 172 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v5.0.0...v5.0.1 173 | 174 | ## v5.0.0 175 | ### v5 Release 176 | `v5` of the Codecov GitHub Action will use the [Codecov Wrapper](https://github.com/codecov/wrapper) to encapsulate the [CLI](https://github.com/codecov/codecov-cli). This will help ensure that the Action gets updates quicker. 177 | 178 | ### Migration Guide 179 | The `v5` release also coincides with the opt-out feature for tokens for public repositories. In the `Global Upload Token` section of the settings page of an organization in codecov.io, you can set the ability for Codecov to receive a coverage reports from any source. This will allow contributors or other members of a repository to upload without needing access to the Codecov token. For more details see [how to upload without a token](https://docs.codecov.com/docs/codecov-tokens#uploading-without-a-token). 180 | 181 | > [!WARNING] 182 | > **The following arguments have been changed** 183 | > - `file` (this has been deprecated in favor of `files`) 184 | > - `plugin` (this has been deprecated in favor of `plugins`) 185 | 186 | The following arguments have been added: 187 | 188 | - `binary` 189 | - `gcov_args` 190 | - `gcov_executable` 191 | - `gcov_ignore` 192 | - `gcov_include` 193 | - `report_type` 194 | - `skip_validation` 195 | - `swift_project` 196 | 197 | You can see their usage in the `action.yml` [file](https://github.com/codecov/codecov-action/blob/main/action.yml). 198 | 199 | ## What's Changed 200 | * chore(deps): bump to eslint9+ and remove eslint-config-google by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1591 201 | * build(deps-dev): bump @octokit/webhooks-types from 7.5.1 to 7.6.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1595 202 | * build(deps-dev): bump typescript from 5.6.2 to 5.6.3 by @dependabot in https://github.com/codecov/codecov-action/pull/1604 203 | * build(deps-dev): bump @typescript-eslint/parser from 8.8.0 to 8.8.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1601 204 | * build(deps): bump @actions/core from 1.11.0 to 1.11.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1597 205 | * build(deps): bump github/codeql-action from 3.26.9 to 3.26.11 by @dependabot in https://github.com/codecov/codecov-action/pull/1596 206 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 8.8.0 to 8.8.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1600 207 | * build(deps-dev): bump eslint from 9.11.1 to 9.12.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1598 208 | * build(deps): bump github/codeql-action from 3.26.11 to 3.26.12 by @dependabot in https://github.com/codecov/codecov-action/pull/1609 209 | * build(deps): bump actions/checkout from 4.2.0 to 4.2.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1608 210 | * build(deps): bump actions/upload-artifact from 4.4.0 to 4.4.3 by @dependabot in https://github.com/codecov/codecov-action/pull/1607 211 | * build(deps-dev): bump @typescript-eslint/parser from 8.8.1 to 8.9.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1612 212 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 8.8.1 to 8.9.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1611 213 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 8.9.0 to 8.10.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1615 214 | * build(deps-dev): bump eslint from 9.12.0 to 9.13.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1618 215 | * build(deps): bump github/codeql-action from 3.26.12 to 3.26.13 by @dependabot in https://github.com/codecov/codecov-action/pull/1617 216 | * build(deps-dev): bump @typescript-eslint/parser from 8.9.0 to 8.10.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1614 217 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 8.10.0 to 8.11.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1620 218 | * build(deps-dev): bump @typescript-eslint/parser from 8.10.0 to 8.11.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1619 219 | * build(deps-dev): bump @types/jest from 29.5.13 to 29.5.14 by @dependabot in https://github.com/codecov/codecov-action/pull/1622 220 | * build(deps): bump actions/checkout from 4.2.1 to 4.2.2 by @dependabot in https://github.com/codecov/codecov-action/pull/1625 221 | * build(deps): bump github/codeql-action from 3.26.13 to 3.27.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1624 222 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 8.11.0 to 8.12.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1626 223 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 8.12.1 to 8.12.2 by @dependabot in https://github.com/codecov/codecov-action/pull/1629 224 | * build(deps-dev): bump @typescript-eslint/parser from 8.11.0 to 8.12.2 by @dependabot in https://github.com/codecov/codecov-action/pull/1628 225 | * build(deps-dev): bump @typescript-eslint/parser from 8.12.2 to 8.13.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1635 226 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 8.12.2 to 8.13.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1634 227 | * feat: use wrapper by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1621 228 | * Update README.md by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1639 229 | * fix: add missing vars by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1638 230 | * fix: update container builds by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1640 231 | * fixL use the correct source by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1642 232 | * chore(deps): bump wrapper to 0.0.23 by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1644 233 | 234 | 235 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v4.6.0...v5.0.0 236 | 237 | ## v5.0.0-beta (Prerelease) 238 | ### What's Changed 239 | * chore(deps): bump to eslint9+ and remove eslint-config-google by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1591 240 | * build(deps-dev): bump @octokit/webhooks-types from 7.5.1 to 7.6.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1595 241 | * build(deps-dev): bump typescript from 5.6.2 to 5.6.3 by @dependabot in https://github.com/codecov/codecov-action/pull/1604 242 | * build(deps-dev): bump @typescript-eslint/parser from 8.8.0 to 8.8.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1601 243 | * build(deps): bump @actions/core from 1.11.0 to 1.11.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1597 244 | * build(deps): bump github/codeql-action from 3.26.9 to 3.26.11 by @dependabot in https://github.com/codecov/codecov-action/pull/1596 245 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 8.8.0 to 8.8.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1600 246 | * build(deps-dev): bump eslint from 9.11.1 to 9.12.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1598 247 | * build(deps): bump github/codeql-action from 3.26.11 to 3.26.12 by @dependabot in https://github.com/codecov/codecov-action/pull/1609 248 | * build(deps): bump actions/checkout from 4.2.0 to 4.2.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1608 249 | * build(deps): bump actions/upload-artifact from 4.4.0 to 4.4.3 by @dependabot in https://github.com/codecov/codecov-action/pull/1607 250 | * build(deps-dev): bump @typescript-eslint/parser from 8.8.1 to 8.9.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1612 251 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 8.8.1 to 8.9.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1611 252 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 8.9.0 to 8.10.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1615 253 | * build(deps-dev): bump eslint from 9.12.0 to 9.13.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1618 254 | * build(deps): bump github/codeql-action from 3.26.12 to 3.26.13 by @dependabot in https://github.com/codecov/codecov-action/pull/1617 255 | * build(deps-dev): bump @typescript-eslint/parser from 8.9.0 to 8.10.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1614 256 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 8.10.0 to 8.11.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1620 257 | * build(deps-dev): bump @typescript-eslint/parser from 8.10.0 to 8.11.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1619 258 | * build(deps-dev): bump @types/jest from 29.5.13 to 29.5.14 by @dependabot in https://github.com/codecov/codecov-action/pull/1622 259 | * build(deps): bump actions/checkout from 4.2.1 to 4.2.2 by @dependabot in https://github.com/codecov/codecov-action/pull/1625 260 | * build(deps): bump github/codeql-action from 3.26.13 to 3.27.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1624 261 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 8.11.0 to 8.12.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1626 262 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 8.12.1 to 8.12.2 by @dependabot in https://github.com/codecov/codecov-action/pull/1629 263 | * build(deps-dev): bump @typescript-eslint/parser from 8.11.0 to 8.12.2 by @dependabot in https://github.com/codecov/codecov-action/pull/1628 264 | * build(deps-dev): bump @typescript-eslint/parser from 8.12.2 to 8.13.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1635 265 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 8.12.2 to 8.13.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1634 266 | * feat: use wrapper by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1621 267 | * Update README.md by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1639 268 | * fix: add missing vars by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1638 269 | * fix: update container builds by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1640 270 | * fixL use the correct source by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1642 271 | 272 | 273 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v4.6.0...v5.0.0-beta 274 | 275 | ## v4.6.0 276 | ### What's Changed 277 | * build(deps): bump github/codeql-action from 3.25.8 to 3.25.10 by @dependabot in https://github.com/codecov/codecov-action/pull/1481 278 | * build(deps): bump actions/checkout from 4.1.6 to 4.1.7 by @dependabot in https://github.com/codecov/codecov-action/pull/1480 279 | * build(deps-dev): bump ts-jest from 29.1.4 to 29.1.5 by @dependabot in https://github.com/codecov/codecov-action/pull/1479 280 | * build(deps-dev): bump @typescript-eslint/parser from 7.13.0 to 7.13.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1485 281 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 7.13.0 to 7.13.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1484 282 | * build(deps-dev): bump typescript from 5.4.5 to 5.5.2 by @dependabot in https://github.com/codecov/codecov-action/pull/1490 283 | * build(deps-dev): bump @typescript-eslint/parser from 7.13.1 to 7.14.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1493 284 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 7.13.1 to 7.14.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1492 285 | * build(deps): bump github/codeql-action from 3.25.10 to 3.25.11 by @dependabot in https://github.com/codecov/codecov-action/pull/1496 286 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 7.14.1 to 7.15.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1501 287 | * build(deps-dev): bump typescript from 5.5.2 to 5.5.3 by @dependabot in https://github.com/codecov/codecov-action/pull/1500 288 | * build(deps-dev): bump @typescript-eslint/parser from 7.14.1 to 7.15.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1499 289 | * build(deps): bump actions/upload-artifact from 4.3.3 to 4.3.4 by @dependabot in https://github.com/codecov/codecov-action/pull/1502 290 | * build(deps-dev): bump ts-jest from 29.1.5 to 29.2.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1504 291 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 7.15.0 to 7.16.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1503 292 | * build(deps-dev): bump ts-jest from 29.2.0 to 29.2.2 by @dependabot in https://github.com/codecov/codecov-action/pull/1507 293 | * build(deps-dev): bump @typescript-eslint/parser from 7.15.0 to 7.16.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1505 294 | * build(deps): bump github/codeql-action from 3.25.11 to 3.25.12 by @dependabot in https://github.com/codecov/codecov-action/pull/1509 295 | * chore(ci): restrict scorecards to codecov/codecov-action by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1512 296 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 7.16.0 to 7.16.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1514 297 | * build(deps-dev): bump @typescript-eslint/parser from 7.16.0 to 7.16.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1513 298 | * test: `versionInfo` by @marcobiedermann in https://github.com/codecov/codecov-action/pull/1407 299 | * build(deps-dev): bump ts-jest from 29.2.2 to 29.2.3 by @dependabot in https://github.com/codecov/codecov-action/pull/1515 300 | * build(deps): bump github/codeql-action from 3.25.12 to 3.25.13 by @dependabot in https://github.com/codecov/codecov-action/pull/1516 301 | * build(deps-dev): bump typescript from 5.5.3 to 5.5.4 by @dependabot in https://github.com/codecov/codecov-action/pull/1521 302 | * build(deps-dev): bump @typescript-eslint/parser from 7.16.1 to 7.17.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1520 303 | * build(deps-dev): bump @typescript-eslint/parser from 7.17.0 to 7.18.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1528 304 | * build(deps): bump github/codeql-action from 3.25.13 to 3.25.15 by @dependabot in https://github.com/codecov/codecov-action/pull/1526 305 | * build(deps): bump ossf/scorecard-action from 2.3.3 to 2.4.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1525 306 | * build(deps-dev): bump ts-jest from 29.2.3 to 29.2.4 by @dependabot in https://github.com/codecov/codecov-action/pull/1532 307 | * build(deps): bump actions/upload-artifact from 4.3.4 to 4.3.5 by @dependabot in https://github.com/codecov/codecov-action/pull/1534 308 | * build(deps): bump github/codeql-action from 3.25.15 to 3.26.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1542 309 | * build(deps): bump actions/upload-artifact from 4.3.5 to 4.3.6 by @dependabot in https://github.com/codecov/codecov-action/pull/1541 310 | * ref: Tidy up types and remove string coercion by @nicholas-codecov in https://github.com/codecov/codecov-action/pull/1536 311 | * build(deps-dev): bump @octokit/webhooks-types from 3.77.1 to 7.5.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1545 312 | * build(deps): bump github/codeql-action from 3.26.0 to 3.26.2 by @dependabot in https://github.com/codecov/codecov-action/pull/1551 313 | * feat: pass tokenless value as branch override by @joseph-sentry in https://github.com/codecov/codecov-action/pull/1511 314 | * build(deps): bump actions/upload-artifact from 4.3.6 to 4.4.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1563 315 | * Create makefile.yml by @Hawthorne001 in https://github.com/codecov/codecov-action/pull/1555 316 | * build(deps): bump github/codeql-action from 3.26.2 to 3.26.6 by @dependabot in https://github.com/codecov/codecov-action/pull/1562 317 | * build(deps-dev): bump ts-jest from 29.2.4 to 29.2.5 by @dependabot in https://github.com/codecov/codecov-action/pull/1557 318 | * Spell `evenName` in the logs correctly by @webknjaz in https://github.com/codecov/codecov-action/pull/1560 319 | * build(deps-dev): bump typescript from 5.5.4 to 5.6.2 by @dependabot in https://github.com/codecov/codecov-action/pull/1566 320 | * build(deps-dev): bump @types/jest from 29.5.12 to 29.5.13 by @dependabot in https://github.com/codecov/codecov-action/pull/1567 321 | * build(deps): bump github/codeql-action from 3.26.6 to 3.26.7 by @dependabot in https://github.com/codecov/codecov-action/pull/1569 322 | * build(deps-dev): bump eslint from 8.57.0 to 8.57.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1571 323 | * build(deps): bump github/codeql-action from 3.26.7 to 3.26.8 by @dependabot in https://github.com/codecov/codecov-action/pull/1575 324 | * build(deps-dev): bump @vercel/ncc from 0.38.1 to 0.38.2 by @dependabot in https://github.com/codecov/codecov-action/pull/1577 325 | * chore: fix typo of OSS by @shoothzj in https://github.com/codecov/codecov-action/pull/1578 326 | * build(deps): bump github/codeql-action from 3.26.8 to 3.26.9 by @dependabot in https://github.com/codecov/codecov-action/pull/1584 327 | * build(deps): bump actions/checkout from 4.1.7 to 4.2.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1583 328 | * fix: bump eslint parser deps by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1586 329 | * chore(release):4.6.0 by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1587 330 | 331 | ## New Contributors 332 | * @nicholas-codecov made their first contribution in https://github.com/codecov/codecov-action/pull/1536 333 | * @Hawthorne001 made their first contribution in https://github.com/codecov/codecov-action/pull/1555 334 | * @webknjaz made their first contribution in https://github.com/codecov/codecov-action/pull/1560 335 | * @shoothzj made their first contribution in https://github.com/codecov/codecov-action/pull/1578 336 | 337 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v4.5.0...v4.6.0 338 | 339 | ## v4.5.0 340 | ### What's Changed 341 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 7.9.0 to 7.10.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1446 342 | * build(deps-dev): bump ts-jest from 29.1.2 to 29.1.3 by @dependabot in https://github.com/codecov/codecov-action/pull/1443 343 | * build(deps-dev): bump @typescript-eslint/parser from 7.9.0 to 7.10.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1445 344 | * build(deps-dev): bump @typescript-eslint/parser from 7.10.0 to 7.11.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1459 345 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 7.10.0 to 7.11.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1458 346 | * build(deps): bump github/codeql-action from 3.25.5 to 3.25.6 by @dependabot in https://github.com/codecov/codecov-action/pull/1456 347 | * build(deps-dev): bump ts-jest from 29.1.3 to 29.1.4 by @dependabot in https://github.com/codecov/codecov-action/pull/1460 348 | * build(deps): bump github/codeql-action from 3.25.6 to 3.25.7 by @dependabot in https://github.com/codecov/codecov-action/pull/1466 349 | * build(deps-dev): bump @typescript-eslint/parser from 7.11.0 to 7.12.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1467 350 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 7.11.0 to 7.12.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1468 351 | * build(deps): bump github/codeql-action from 3.25.7 to 3.25.8 by @dependabot in https://github.com/codecov/codecov-action/pull/1472 352 | * fix: handle trailing commas by @joseph-sentry in https://github.com/codecov/codecov-action/pull/1470 353 | * build(deps-dev): bump @typescript-eslint/parser from 7.12.0 to 7.13.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1474 354 | * build(deps-dev): bump braces from 3.0.2 to 3.0.3 by @dependabot in https://github.com/codecov/codecov-action/pull/1475 355 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 7.12.0 to 7.13.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1473 356 | * feat: add support for tokenless v3 by @joseph-sentry in https://github.com/codecov/codecov-action/pull/1410 357 | * Use an existing token even if the PR is from a fork by @leofeyer in https://github.com/codecov/codecov-action/pull/1471 358 | * chore(release): bump to 4.5.0 by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1477 359 | 360 | ## New Contributors 361 | * @joseph-sentry made their first contribution in https://github.com/codecov/codecov-action/pull/1470 362 | * @leofeyer made their first contribution in https://github.com/codecov/codecov-action/pull/1471 363 | 364 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v4.4.1...v4.5.0 365 | 366 | ## v4.4.1 367 | ### What's Changed 368 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 7.8.0 to 7.9.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1427 369 | * fix: prevent xlarge from running on forks by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1432 370 | * build(deps): bump github/codeql-action from 3.25.4 to 3.25.5 by @dependabot in https://github.com/codecov/codecov-action/pull/1439 371 | * build(deps): bump actions/checkout from 4.1.5 to 4.1.6 by @dependabot in https://github.com/codecov/codecov-action/pull/1438 372 | * fix: isPullRequestFromFork returns false for any PR by @shahar-h in https://github.com/codecov/codecov-action/pull/1437 373 | * chore(release): 4.4.1 by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1441 374 | 375 | ## New Contributors 376 | * @shahar-h made their first contribution in https://github.com/codecov/codecov-action/pull/1437 377 | 378 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v4.4.0...v4.4.1 379 | 380 | ## What's Changed 381 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 7.8.0 to 7.9.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1427 382 | * fix: prevent xlarge from running on forks by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1432 383 | * build(deps): bump github/codeql-action from 3.25.4 to 3.25.5 by @dependabot in https://github.com/codecov/codecov-action/pull/1439 384 | * build(deps): bump actions/checkout from 4.1.5 to 4.1.6 by @dependabot in https://github.com/codecov/codecov-action/pull/1438 385 | * fix: isPullRequestFromFork returns false for any PR by @shahar-h in https://github.com/codecov/codecov-action/pull/1437 386 | * chore(release): 4.4.1 by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1441 387 | 388 | ## New Contributors 389 | * @shahar-h made their first contribution in https://github.com/codecov/codecov-action/pull/1437 390 | 391 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v4.4.0...v4.4.1 392 | 393 | ## v4.4.0 394 | ### What's Changed 395 | * chore: Clarify isPullRequestFromFork by @jsoref in https://github.com/codecov/codecov-action/pull/1411 396 | * build(deps): bump actions/checkout from 4.1.4 to 4.1.5 by @dependabot in https://github.com/codecov/codecov-action/pull/1423 397 | * build(deps): bump github/codeql-action from 3.25.3 to 3.25.4 by @dependabot in https://github.com/codecov/codecov-action/pull/1421 398 | * build(deps): bump ossf/scorecard-action from 2.3.1 to 2.3.3 by @dependabot in https://github.com/codecov/codecov-action/pull/1420 399 | * feat: remove GPG and run on spawn by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1426 400 | * build(deps-dev): bump @typescript-eslint/parser from 7.8.0 to 7.9.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1428 401 | * chore(release): 4.4.0 by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1430 402 | 403 | 404 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v4.3.1...v4.4.0 405 | 406 | ## v4.3.1 407 | ### What's Changed 408 | * build(deps-dev): bump typescript from 5.4.4 to 5.4.5 by @dependabot in https://github.com/codecov/codecov-action/pull/1370 409 | * fix: more verbose log message when failing to import pgp key by @ReenigneArcher in https://github.com/codecov/codecov-action/pull/1371 410 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 7.6.0 to 7.7.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1374 411 | * build(deps-dev): bump @typescript-eslint/parser from 7.6.0 to 7.7.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1375 412 | * build(deps): bump actions/checkout from 4.1.2 to 4.1.3 by @dependabot in https://github.com/codecov/codecov-action/pull/1382 413 | * build(deps): bump github/codeql-action from 3.24.10 to 3.25.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1381 414 | * build(deps): bump actions/upload-artifact from 4.3.1 to 4.3.2 by @dependabot in https://github.com/codecov/codecov-action/pull/1380 415 | * build(deps-dev): bump @typescript-eslint/parser from 7.7.0 to 7.7.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1384 416 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 7.7.0 to 7.7.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1383 417 | * Update README.md to point to docs about tokenless by @rohan-at-sentry in https://github.com/codecov/codecov-action/pull/1395 418 | * build(deps): bump actions/upload-artifact from 4.3.2 to 4.3.3 by @dependabot in https://github.com/codecov/codecov-action/pull/1393 419 | * build(deps): bump actions/checkout from 4.1.3 to 4.1.4 by @dependabot in https://github.com/codecov/codecov-action/pull/1392 420 | * build(deps): bump github/codeql-action from 3.25.1 to 3.25.3 by @dependabot in https://github.com/codecov/codecov-action/pull/1391 421 | * style: Node Packages by @marcobiedermann in https://github.com/codecov/codecov-action/pull/1394 422 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 7.7.1 to 7.8.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1402 423 | * build(deps-dev): bump @typescript-eslint/parser from 7.7.1 to 7.8.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1401 424 | * docs: Type Annotations by @marcobiedermann in https://github.com/codecov/codecov-action/pull/1397 425 | * docs: main branch by @marcobiedermann in https://github.com/codecov/codecov-action/pull/1396 426 | * fix: bypass token checks for forks and OIDC by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1404 427 | * chore(release): 4.3.1. by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1405 428 | 429 | ## New Contributors 430 | * @ReenigneArcher made their first contribution in https://github.com/codecov/codecov-action/pull/1371 431 | * @rohan-at-sentry made their first contribution in https://github.com/codecov/codecov-action/pull/1395 432 | * @marcobiedermann made their first contribution in https://github.com/codecov/codecov-action/pull/1394 433 | 434 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v4.3.0...v4.3.1 435 | 436 | ## v4.3.0 437 | ### What's Changed 438 | * fix: automatically detect if using GitHub enterprise by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1356 439 | * build(deps-dev): bump typescript from 5.4.3 to 5.4.4 by @dependabot in https://github.com/codecov/codecov-action/pull/1355 440 | * build(deps): bump github/codeql-action from 3.24.9 to 3.24.10 by @dependabot in https://github.com/codecov/codecov-action/pull/1360 441 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 7.5.0 to 7.6.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1364 442 | * build(deps-dev): bump @typescript-eslint/parser from 7.5.0 to 7.6.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1363 443 | * feat: add network params by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1365 444 | * build(deps): bump undici from 5.28.3 to 5.28.4 by @dependabot in https://github.com/codecov/codecov-action/pull/1361 445 | * chore(release): v4.3.0 by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1366 446 | 447 | 448 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v4.2.0...v4.3.0 449 | 450 | ## v4.2.0 451 | ### What's Changed 452 | * chore(deps): update deps by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1351 453 | * feat: allow for authentication via OIDC token by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1330 454 | * fix: use_oidc shoudl be required false by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1353 455 | 456 | 457 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v4.1.1...v4.2.0 458 | 459 | ## v4.1.1 460 | ### What's Changed 461 | * build(deps): bump github/codeql-action from 3.24.5 to 3.24.6 by @dependabot in https://github.com/codecov/codecov-action/pull/1315 462 | * build(deps-dev): bump typescript from 5.3.3 to 5.4.2 by @dependabot in https://github.com/codecov/codecov-action/pull/1319 463 | * Removed mention of Mercurial by @drazisil-codecov in https://github.com/codecov/codecov-action/pull/1325 464 | * build(deps): bump github/codeql-action from 3.24.6 to 3.24.7 by @dependabot in https://github.com/codecov/codecov-action/pull/1332 465 | * build(deps): bump actions/checkout from 4.1.1 to 4.1.2 by @dependabot in https://github.com/codecov/codecov-action/pull/1331 466 | * fix: force version by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1329 467 | * build(deps-dev): bump typescript from 5.4.2 to 5.4.3 by @dependabot in https://github.com/codecov/codecov-action/pull/1334 468 | * build(deps): bump undici from 5.28.2 to 5.28.3 by @dependabot in https://github.com/codecov/codecov-action/pull/1338 469 | * build(deps): bump github/codeql-action from 3.24.7 to 3.24.9 by @dependabot in https://github.com/codecov/codecov-action/pull/1341 470 | * fix: typo in disable_safe_directory by @mkroening in https://github.com/codecov/codecov-action/pull/1343 471 | * chore(release): 4.1.1 by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1344 472 | 473 | ## New Contributors 474 | * @mkroening made their first contribution in https://github.com/codecov/codecov-action/pull/1343 475 | 476 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v4.1.0...v4.1.1 477 | 478 | ## v4.1.0 479 | ### What's Changed 480 | * fix: set safe directory by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1304 481 | * build(deps): bump github/codeql-action from 3.24.3 to 3.24.5 by @dependabot in https://github.com/codecov/codecov-action/pull/1306 482 | * build(deps-dev): bump eslint from 8.56.0 to 8.57.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1305 483 | * chore(release): v4.1.0 by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1307 484 | 485 | 486 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v4.0.2...v4.1.0 487 | 488 | ## v4.0.2 489 | ### What's Changed 490 | * Update README.md by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1251 491 | * build(deps-dev): bump @types/jest from 29.5.11 to 29.5.12 by @dependabot in https://github.com/codecov/codecov-action/pull/1257 492 | * build(deps): bump github/codeql-action from 3.23.2 to 3.24.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1266 493 | * Escape pipes in table of arguments by @jwodder in https://github.com/codecov/codecov-action/pull/1265 494 | * Add link to docs on Dependabot secrets by @ianlewis in https://github.com/codecov/codecov-action/pull/1260 495 | * fix: working-directory input for all stages by @Bo98 in https://github.com/codecov/codecov-action/pull/1272 496 | * build(deps-dev): bump @typescript-eslint/parser from 6.20.0 to 6.21.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1271 497 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 6.20.0 to 6.21.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1269 498 | * build(deps): bump github/codeql-action from 3.24.0 to 3.24.3 by @dependabot in https://github.com/codecov/codecov-action/pull/1298 499 | * Use updated syntax for GitHub Markdown notes by @jamacku in https://github.com/codecov/codecov-action/pull/1300 500 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 6.21.0 to 7.0.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1290 501 | * build(deps): bump actions/upload-artifact from 4.3.0 to 4.3.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1286 502 | * chore(release): bump to 4.0.2 by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1302 503 | 504 | ## New Contributors 505 | * @jwodder made their first contribution in https://github.com/codecov/codecov-action/pull/1265 506 | * @ianlewis made their first contribution in https://github.com/codecov/codecov-action/pull/1260 507 | * @Bo98 made their first contribution in https://github.com/codecov/codecov-action/pull/1272 508 | * @jamacku made their first contribution in https://github.com/codecov/codecov-action/pull/1300 509 | 510 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v4.0.1...v4.0.2 511 | 512 | ## v4.0.1 513 | ### What's Changed 514 | * Update README.md by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1243 515 | * Add all args by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1245 516 | * fix: show both token uses in readme by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1250 517 | 518 | 519 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v4.0.0...v4.0.1 520 | 521 | ## v4.0.0 522 | #v4 of the Codecov Action uses the [CLI](https://docs.codecov.com/docs/the-codecov-cli) as the underlying upload. The CLI has helped to power new features including local upload, the global upload token, and new upcoming features. 523 | 524 | ## Breaking Changes 525 | 526 | - The Codecov Action runs as a `node20` action due to `node16` deprecation. See [this post from GitHub](https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/) on how to migrate. 527 | - Tokenless uploading is unsupported. However, PRs made from forks to the upstream public repos will support tokenless (e.g. contributors to OS projects do not need the upstream repo's Codecov token). This [doc](https://docs.codecov.com/docs/adding-the-codecov-token#github-actions) shows instructions on how to add the Codecov token. 528 | - OS platforms have been added, though some may not be automatically detected. To see a list of platforms, see our [CLI download page](https://cli.codecov.io) 529 | - Various arguments to the Action have been changed. Please be aware that the arguments match with the CLI's needs 530 | 531 | `v3` versions and below will not have access to CLI features (e.g. global upload token, ATS). 532 | 533 | ## What's Changed 534 | * build(deps): bump openpgp from 5.8.0 to 5.9.0 by @dependabot in https://github.com/codecov/codecov-action/pull/985 535 | * build(deps): bump actions/checkout from 3.0.0 to 3.5.3 by @dependabot in https://github.com/codecov/codecov-action/pull/1000 536 | * build(deps): bump ossf/scorecard-action from 2.1.3 to 2.2.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1006 537 | * build(deps): bump tough-cookie from 4.0.0 to 4.1.3 by @dependabot in https://github.com/codecov/codecov-action/pull/1013 538 | * build(deps-dev): bump word-wrap from 1.2.3 to 1.2.4 by @dependabot in https://github.com/codecov/codecov-action/pull/1024 539 | * build(deps): bump node-fetch from 3.3.1 to 3.3.2 by @dependabot in https://github.com/codecov/codecov-action/pull/1031 540 | * build(deps-dev): bump @types/node from 20.1.4 to 20.4.5 by @dependabot in https://github.com/codecov/codecov-action/pull/1032 541 | * build(deps): bump github/codeql-action from 1.0.26 to 2.21.2 by @dependabot in https://github.com/codecov/codecov-action/pull/1033 542 | * build commit,report and upload args based on codecovcli by @dana-yaish in https://github.com/codecov/codecov-action/pull/943 543 | * build(deps-dev): bump @types/node from 20.4.5 to 20.5.3 by @dependabot in https://github.com/codecov/codecov-action/pull/1055 544 | * build(deps): bump github/codeql-action from 2.21.2 to 2.21.4 by @dependabot in https://github.com/codecov/codecov-action/pull/1051 545 | * build(deps-dev): bump @types/node from 20.5.3 to 20.5.4 by @dependabot in https://github.com/codecov/codecov-action/pull/1058 546 | * chore(deps): update outdated deps by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1059 547 | * build(deps-dev): bump @types/node from 20.5.4 to 20.5.6 by @dependabot in https://github.com/codecov/codecov-action/pull/1060 548 | * build(deps-dev): bump @typescript-eslint/parser from 6.4.1 to 6.5.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1065 549 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 6.4.1 to 6.5.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1064 550 | * build(deps): bump actions/checkout from 3.5.3 to 3.6.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1063 551 | * build(deps-dev): bump eslint from 8.47.0 to 8.48.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1061 552 | * build(deps-dev): bump @types/node from 20.5.6 to 20.5.7 by @dependabot in https://github.com/codecov/codecov-action/pull/1062 553 | * build(deps): bump openpgp from 5.9.0 to 5.10.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1066 554 | * build(deps-dev): bump @types/node from 20.5.7 to 20.5.9 by @dependabot in https://github.com/codecov/codecov-action/pull/1070 555 | * build(deps): bump github/codeql-action from 2.21.4 to 2.21.5 by @dependabot in https://github.com/codecov/codecov-action/pull/1069 556 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 6.5.0 to 6.6.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1072 557 | * Update README.md by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1073 558 | * build(deps-dev): bump @typescript-eslint/parser from 6.5.0 to 6.6.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1071 559 | * build(deps-dev): bump @vercel/ncc from 0.36.1 to 0.38.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1074 560 | * build(deps): bump @actions/core from 1.10.0 to 1.10.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1081 561 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 6.6.0 to 6.7.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1080 562 | * build(deps): bump actions/checkout from 3.6.0 to 4.0.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1078 563 | * build(deps): bump actions/upload-artifact from 3.1.2 to 3.1.3 by @dependabot in https://github.com/codecov/codecov-action/pull/1077 564 | * build(deps-dev): bump @types/node from 20.5.9 to 20.6.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1075 565 | * build(deps-dev): bump @typescript-eslint/parser from 6.6.0 to 6.7.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1079 566 | * build(deps-dev): bump eslint from 8.48.0 to 8.49.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1076 567 | * use cli instead of node uploader by @dana-yaish in https://github.com/codecov/codecov-action/pull/1068 568 | * chore(release): 4.0.0-beta.1 by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1084 569 | * not adding -n if empty to do-upload command by @dana-yaish in https://github.com/codecov/codecov-action/pull/1085 570 | * 4.0.0-beta.2 by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1086 571 | * build(deps-dev): bump jest from 29.6.4 to 29.7.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1082 572 | * build(deps-dev): bump @types/jest from 29.5.4 to 29.5.5 by @dependabot in https://github.com/codecov/codecov-action/pull/1092 573 | * build(deps): bump github/codeql-action from 2.21.5 to 2.21.7 by @dependabot in https://github.com/codecov/codecov-action/pull/1094 574 | * build(deps-dev): bump @types/node from 20.6.0 to 20.6.2 by @dependabot in https://github.com/codecov/codecov-action/pull/1093 575 | * build(deps): bump openpgp from 5.10.1 to 5.10.2 by @dependabot in https://github.com/codecov/codecov-action/pull/1096 576 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 6.7.0 to 6.7.2 by @dependabot in https://github.com/codecov/codecov-action/pull/1095 577 | * build(deps-dev): bump @types/node from 20.6.2 to 20.6.3 by @dependabot in https://github.com/codecov/codecov-action/pull/1098 578 | * build(deps-dev): bump @typescript-eslint/parser from 6.7.0 to 6.7.2 by @dependabot in https://github.com/codecov/codecov-action/pull/1097 579 | * feat: add plugins by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1099 580 | * build(deps-dev): bump eslint from 8.49.0 to 8.50.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1104 581 | * build(deps): bump github/codeql-action from 2.21.7 to 2.21.8 by @dependabot in https://github.com/codecov/codecov-action/pull/1102 582 | * build(deps): bump actions/checkout from 4.0.0 to 4.1.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1101 583 | * build(deps-dev): bump @typescript-eslint/parser from 6.7.2 to 6.7.3 by @dependabot in https://github.com/codecov/codecov-action/pull/1108 584 | * build(deps-dev): bump @types/node from 20.6.3 to 20.7.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1107 585 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 6.7.2 to 6.7.3 by @dependabot in https://github.com/codecov/codecov-action/pull/1106 586 | * build(deps-dev): bump @types/node from 20.7.0 to 20.7.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1111 587 | * build(deps): bump github/codeql-action from 2.21.8 to 2.21.9 by @dependabot in https://github.com/codecov/codecov-action/pull/1113 588 | * build(deps-dev): bump @types/node from 20.7.1 to 20.8.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1112 589 | * build(deps-dev): bump @types/node from 20.8.0 to 20.8.2 by @dependabot in https://github.com/codecov/codecov-action/pull/1114 590 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 6.7.3 to 6.7.4 by @dependabot in https://github.com/codecov/codecov-action/pull/1115 591 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 6.7.4 to 6.7.5 by @dependabot in https://github.com/codecov/codecov-action/pull/1123 592 | * build(deps): bump ossf/scorecard-action from 2.2.0 to 2.3.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1120 593 | * build(deps): bump github/codeql-action from 2.21.9 to 2.22.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1119 594 | * build(deps-dev): bump @typescript-eslint/parser from 6.7.3 to 6.7.5 by @dependabot in https://github.com/codecov/codecov-action/pull/1122 595 | * build(deps-dev): bump @types/node from 20.8.2 to 20.8.4 by @dependabot in https://github.com/codecov/codecov-action/pull/1121 596 | * build(deps-dev): bump eslint from 8.50.0 to 8.51.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1117 597 | * build(deps): bump @actions/github from 5.1.1 to 6.0.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1124 598 | * build(deps): bump github/codeql-action from 2.22.0 to 2.22.3 by @dependabot in https://github.com/codecov/codecov-action/pull/1127 599 | * build(deps-dev): bump @types/node from 20.8.4 to 20.8.6 by @dependabot in https://github.com/codecov/codecov-action/pull/1126 600 | * build(deps-dev): bump @babel/traverse from 7.22.11 to 7.23.2 by @dependabot in https://github.com/codecov/codecov-action/pull/1129 601 | * build(deps): bump undici from 5.25.4 to 5.26.3 by @dependabot in https://github.com/codecov/codecov-action/pull/1128 602 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 6.7.5 to 6.8.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1130 603 | * build(deps-dev): bump @typescript-eslint/parser from 6.7.5 to 6.8.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1131 604 | * build(deps-dev): bump @types/node from 20.8.6 to 20.8.7 by @dependabot in https://github.com/codecov/codecov-action/pull/1135 605 | * build(deps-dev): bump @vercel/ncc from 0.38.0 to 0.38.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1136 606 | * build(deps-dev): bump @types/jest from 29.5.5 to 29.5.6 by @dependabot in https://github.com/codecov/codecov-action/pull/1137 607 | * build(deps): bump github/codeql-action from 2.22.3 to 2.22.4 by @dependabot in https://github.com/codecov/codecov-action/pull/1142 608 | * build(deps): bump actions/checkout from 4.1.0 to 4.1.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1141 609 | * build(deps-dev): bump eslint from 8.51.0 to 8.52.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1140 610 | * build(deps-dev): bump @typescript-eslint/parser from 6.8.0 to 6.9.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1147 611 | * build(deps-dev): bump @types/node from 20.8.7 to 20.8.8 by @dependabot in https://github.com/codecov/codecov-action/pull/1146 612 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 6.8.0 to 6.9.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1145 613 | * chore(deps): move from node-fetch to undici by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1148 614 | * build(deps): bump openpgp from 5.10.2 to 5.11.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1149 615 | * build(deps-dev): bump @typescript-eslint/parser from 6.9.0 to 6.9.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1155 616 | * build(deps): bump github/codeql-action from 2.22.4 to 2.22.5 by @dependabot in https://github.com/codecov/codecov-action/pull/1152 617 | * build(deps): bump ossf/scorecard-action from 2.3.0 to 2.3.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1151 618 | * build(deps): bump undici from 5.26.5 to 5.27.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1150 619 | * build(deps-dev): bump @types/jest from 29.5.6 to 29.5.7 by @dependabot in https://github.com/codecov/codecov-action/pull/1153 620 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 6.9.0 to 6.9.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1154 621 | * build(deps): bump undici from 5.27.0 to 5.27.2 by @dependabot in https://github.com/codecov/codecov-action/pull/1157 622 | * build(deps-dev): bump eslint from 8.52.0 to 8.53.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1156 623 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 6.9.1 to 6.10.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1159 624 | * build(deps-dev): bump @typescript-eslint/parser from 6.9.1 to 6.10.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1158 625 | * build(deps-dev): bump @types/jest from 29.5.7 to 29.5.8 by @dependabot in https://github.com/codecov/codecov-action/pull/1161 626 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 6.10.0 to 6.11.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1164 627 | * build(deps-dev): bump @typescript-eslint/parser from 6.10.0 to 6.11.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1163 628 | * build(deps): bump github/codeql-action from 2.22.5 to 2.22.7 by @dependabot in https://github.com/codecov/codecov-action/pull/1167 629 | * build(deps-dev): bump eslint from 8.53.0 to 8.54.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1166 630 | * build(deps-dev): bump @types/jest from 29.5.8 to 29.5.9 by @dependabot in https://github.com/codecov/codecov-action/pull/1172 631 | * build(deps-dev): bump typescript from 5.2.2 to 5.3.2 by @dependabot in https://github.com/codecov/codecov-action/pull/1171 632 | * build(deps-dev): bump @typescript-eslint/parser from 6.11.0 to 6.12.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1170 633 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 6.11.0 to 6.12.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1169 634 | * build(deps): bump github/codeql-action from 2.22.7 to 2.22.8 by @dependabot in https://github.com/codecov/codecov-action/pull/1175 635 | * build(deps): bump undici from 5.27.2 to 5.28.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1174 636 | * build(deps-dev): bump @types/jest from 29.5.9 to 29.5.10 by @dependabot in https://github.com/codecov/codecov-action/pull/1173 637 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 6.12.0 to 6.13.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1178 638 | * build(deps-dev): bump @typescript-eslint/parser from 6.12.0 to 6.13.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1180 639 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 6.13.0 to 6.13.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1181 640 | * build(deps): bump undici from 5.28.0 to 5.28.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1179 641 | * build(deps-dev): bump eslint from 8.54.0 to 8.55.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1183 642 | * build(deps): bump undici from 5.28.1 to 5.28.2 by @dependabot in https://github.com/codecov/codecov-action/pull/1182 643 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 6.13.1 to 6.13.2 by @dependabot in https://github.com/codecov/codecov-action/pull/1185 644 | * build(deps-dev): bump @typescript-eslint/parser from 6.13.1 to 6.13.2 by @dependabot in https://github.com/codecov/codecov-action/pull/1184 645 | * build(deps-dev): bump @types/jest from 29.5.10 to 29.5.11 by @dependabot in https://github.com/codecov/codecov-action/pull/1187 646 | * build(deps): bump undici from 5.28.2 to 6.0.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1186 647 | * build(deps-dev): bump typescript from 5.3.2 to 5.3.3 by @dependabot in https://github.com/codecov/codecov-action/pull/1189 648 | * build(deps): bump undici from 6.0.0 to 6.0.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1188 649 | * build(deps): bump github/codeql-action from 2.22.8 to 2.22.9 by @dependabot in https://github.com/codecov/codecov-action/pull/1191 650 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 6.13.2 to 6.14.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1193 651 | * build(deps-dev): bump @typescript-eslint/parser from 6.13.2 to 6.14.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1192 652 | * build(deps-dev): bump eslint from 8.55.0 to 8.56.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1194 653 | * build(deps): bump github/codeql-action from 2.22.9 to 3.22.11 by @dependabot in https://github.com/codecov/codecov-action/pull/1195 654 | * build(deps): bump actions/upload-artifact from 3.1.3 to 4.0.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1196 655 | * build(deps-dev): bump @typescript-eslint/parser from 6.14.0 to 6.15.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1198 656 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 6.14.0 to 6.15.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1197 657 | * build(deps): bump undici from 6.0.1 to 6.2.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1199 658 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 6.15.0 to 6.17.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1206 659 | * build(deps-dev): bump @typescript-eslint/parser from 6.15.0 to 6.17.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1205 660 | * build(deps): bump undici from 6.2.0 to 6.2.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1201 661 | * build(deps): bump github/codeql-action from 3.22.11 to 3.22.12 by @dependabot in https://github.com/codecov/codecov-action/pull/1200 662 | * build(deps-dev): bump @typescript-eslint/parser from 6.17.0 to 6.18.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1208 663 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 6.17.0 to 6.18.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1207 664 | * build(deps): bump undici from 6.2.1 to 6.3.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1211 665 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 6.18.0 to 6.18.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1210 666 | * build(deps-dev): bump @typescript-eslint/parser from 6.18.0 to 6.18.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1209 667 | * build(deps-dev): bump @typescript-eslint/parser from 6.18.1 to 6.19.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1215 668 | * build(deps): bump github/codeql-action from 3.22.12 to 3.23.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1213 669 | * build(deps): bump actions/upload-artifact from 4.0.0 to 4.1.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1212 670 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 6.18.1 to 6.19.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1214 671 | * fix: downgrade undici as it has a breaking change by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1219 672 | * fix: remove openpgp dep due to licensing and use gpg by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1218 673 | * chore(ci): add fossa workflow by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1216 674 | * build(deps): bump actions/upload-artifact from 4.1.0 to 4.2.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1222 675 | * build(deps): bump github/codeql-action from 3.23.0 to 3.23.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1221 676 | * build(deps-dev): bump @typescript-eslint/parser from 6.19.0 to 6.19.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1225 677 | * build(deps-dev): bump ts-jest from 29.1.1 to 29.1.2 by @dependabot in https://github.com/codecov/codecov-action/pull/1224 678 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 6.19.0 to 6.19.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1223 679 | * build(deps): bump actions/upload-artifact from 4.2.0 to 4.3.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1232 680 | * build(deps): bump github/codeql-action from 3.23.1 to 3.23.2 by @dependabot in https://github.com/codecov/codecov-action/pull/1231 681 | * build(deps-dev): bump @typescript-eslint/parser from 6.19.1 to 6.20.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1235 682 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 6.19.1 to 6.20.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1234 683 | * chore(ci): bump to node20 by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1236 684 | * Update README.md by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1237 685 | * Update package.json by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1238 686 | * fix: allow for other archs by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1239 687 | * fix: update action.yml by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1240 688 | 689 | ## New Contributors 690 | * @dana-yaish made their first contribution in https://github.com/codecov/codecov-action/pull/943 691 | 692 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v3.1.6...v4.0.0 693 | 694 | ## v3.1.6 695 | #**Full Changelog**: https://github.com/codecov/codecov-action/compare/v3.1.5...v3.1.6 696 | 697 | ## v3.1.5 698 | ### What's Changed 699 | * action.yml: Update to Node.js 20 by @hallabro in https://github.com/codecov/codecov-action/pull/1228 700 | 701 | ## New Contributors 702 | * @hallabro made their first contribution in https://github.com/codecov/codecov-action/pull/1228 703 | 704 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v3.1.4...v3.1.5 705 | 706 | ## v4.0.0-beta.3 (Prerelease) 707 | ### What's Changed 708 | * build(deps-dev): bump jest from 29.6.4 to 29.7.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1082 709 | * build(deps-dev): bump @types/jest from 29.5.4 to 29.5.5 by @dependabot in https://github.com/codecov/codecov-action/pull/1092 710 | * build(deps): bump github/codeql-action from 2.21.5 to 2.21.7 by @dependabot in https://github.com/codecov/codecov-action/pull/1094 711 | * build(deps-dev): bump @types/node from 20.6.0 to 20.6.2 by @dependabot in https://github.com/codecov/codecov-action/pull/1093 712 | * build(deps): bump openpgp from 5.10.1 to 5.10.2 by @dependabot in https://github.com/codecov/codecov-action/pull/1096 713 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 6.7.0 to 6.7.2 by @dependabot in https://github.com/codecov/codecov-action/pull/1095 714 | * build(deps-dev): bump @types/node from 20.6.2 to 20.6.3 by @dependabot in https://github.com/codecov/codecov-action/pull/1098 715 | * build(deps-dev): bump @typescript-eslint/parser from 6.7.0 to 6.7.2 by @dependabot in https://github.com/codecov/codecov-action/pull/1097 716 | * feat: add plugins by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1099 717 | 718 | 719 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v4.0.0-beta.2...v4.0.0-beta.3 720 | 721 | ## v4.0.0-beta.2 (Prerelease) 722 | ### What's Changed 723 | * not adding -n if empty to do-upload command by @dana-yaish in https://github.com/codecov/codecov-action/pull/1085 724 | * 4.0.0-beta.2 by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1086 725 | 726 | 727 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v4.0.0-beta.1...v4.0.0-beta.2 728 | 729 | ## 4.0.0-beta.1 (Prerelease) 730 | #`v4` represents a move from the [universal uploader](https://github.com/codecov/uploader) to the [Codecov CLI](https://github.com/codecov/codecov-cli). Although this will unlock new features for our users, the CLI is not yet at feature parity with the universal uploader. 731 | 732 | ## Breaking Changes 733 | - No current support for `aarch64` and `alpine` architectures. 734 | - Tokenless uploading is unsuported 735 | - Various arguments to the Action have been removed 736 | 737 | ## What's Changed 738 | * build(deps): bump openpgp from 5.8.0 to 5.9.0 by @dependabot in https://github.com/codecov/codecov-action/pull/985 739 | * build(deps): bump actions/checkout from 3.0.0 to 3.5.3 by @dependabot in https://github.com/codecov/codecov-action/pull/1000 740 | * build(deps): bump ossf/scorecard-action from 2.1.3 to 2.2.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1006 741 | * build(deps): bump tough-cookie from 4.0.0 to 4.1.3 by @dependabot in https://github.com/codecov/codecov-action/pull/1013 742 | * build(deps-dev): bump word-wrap from 1.2.3 to 1.2.4 by @dependabot in https://github.com/codecov/codecov-action/pull/1024 743 | * build(deps): bump node-fetch from 3.3.1 to 3.3.2 by @dependabot in https://github.com/codecov/codecov-action/pull/1031 744 | * build(deps-dev): bump @types/node from 20.1.4 to 20.4.5 by @dependabot in https://github.com/codecov/codecov-action/pull/1032 745 | * build(deps): bump github/codeql-action from 1.0.26 to 2.21.2 by @dependabot in https://github.com/codecov/codecov-action/pull/1033 746 | * build commit,report and upload args based on codecovcli by @dana-yaish in https://github.com/codecov/codecov-action/pull/943 747 | * build(deps-dev): bump @types/node from 20.4.5 to 20.5.3 by @dependabot in https://github.com/codecov/codecov-action/pull/1055 748 | * build(deps): bump github/codeql-action from 2.21.2 to 2.21.4 by @dependabot in https://github.com/codecov/codecov-action/pull/1051 749 | * build(deps-dev): bump @types/node from 20.5.3 to 20.5.4 by @dependabot in https://github.com/codecov/codecov-action/pull/1058 750 | * chore(deps): update outdated deps by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1059 751 | * build(deps-dev): bump @types/node from 20.5.4 to 20.5.6 by @dependabot in https://github.com/codecov/codecov-action/pull/1060 752 | * build(deps-dev): bump @typescript-eslint/parser from 6.4.1 to 6.5.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1065 753 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 6.4.1 to 6.5.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1064 754 | * build(deps): bump actions/checkout from 3.5.3 to 3.6.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1063 755 | * build(deps-dev): bump eslint from 8.47.0 to 8.48.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1061 756 | * build(deps-dev): bump @types/node from 20.5.6 to 20.5.7 by @dependabot in https://github.com/codecov/codecov-action/pull/1062 757 | * build(deps): bump openpgp from 5.9.0 to 5.10.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1066 758 | * build(deps-dev): bump @types/node from 20.5.7 to 20.5.9 by @dependabot in https://github.com/codecov/codecov-action/pull/1070 759 | * build(deps): bump github/codeql-action from 2.21.4 to 2.21.5 by @dependabot in https://github.com/codecov/codecov-action/pull/1069 760 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 6.5.0 to 6.6.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1072 761 | * Update README.md by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1073 762 | * build(deps-dev): bump @typescript-eslint/parser from 6.5.0 to 6.6.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1071 763 | * build(deps-dev): bump @vercel/ncc from 0.36.1 to 0.38.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1074 764 | * build(deps): bump @actions/core from 1.10.0 to 1.10.1 by @dependabot in https://github.com/codecov/codecov-action/pull/1081 765 | * build(deps-dev): bump @typescript-eslint/eslint-plugin from 6.6.0 to 6.7.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1080 766 | * build(deps): bump actions/checkout from 3.6.0 to 4.0.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1078 767 | * build(deps): bump actions/upload-artifact from 3.1.2 to 3.1.3 by @dependabot in https://github.com/codecov/codecov-action/pull/1077 768 | * build(deps-dev): bump @types/node from 20.5.9 to 20.6.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1075 769 | * build(deps-dev): bump @typescript-eslint/parser from 6.6.0 to 6.7.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1079 770 | * build(deps-dev): bump eslint from 8.48.0 to 8.49.0 by @dependabot in https://github.com/codecov/codecov-action/pull/1076 771 | * use cli instead of node uploader by @dana-yaish in https://github.com/codecov/codecov-action/pull/1068 772 | * chore(release): 4.0.0-beta.1 by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1084 773 | 774 | ## New Contributors 775 | * @dana-yaish made their first contribution in https://github.com/codecov/codecov-action/pull/943 776 | 777 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v3.1.4...v4.0.0-beta.1 778 | 779 | ## 3.1.4 780 | ### What's Changed 781 | * build(deps-dev): bump @types/node from 18.15.12 to 18.16.3 by @dependabot in https://github.com/codecov/codecov-action/pull/970 782 | * Fix typo in README.md by @hisaac in https://github.com/codecov/codecov-action/pull/967 783 | * fix: add back in working dir by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/971 784 | * fix: CLI option names for uploader by @kleisauke in https://github.com/codecov/codecov-action/pull/969 785 | * build(deps-dev): bump @types/node from 18.16.3 to 20.1.0 by @dependabot in https://github.com/codecov/codecov-action/pull/975 786 | * build(deps-dev): bump @types/node from 20.1.0 to 20.1.2 by @dependabot in https://github.com/codecov/codecov-action/pull/979 787 | * build(deps-dev): bump @types/node from 20.1.2 to 20.1.4 by @dependabot in https://github.com/codecov/codecov-action/pull/981 788 | * release: 3.1.4 by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/983 789 | 790 | ## New Contributors 791 | * @hisaac made their first contribution in https://github.com/codecov/codecov-action/pull/967 792 | * @kleisauke made their first contribution in https://github.com/codecov/codecov-action/pull/969 793 | 794 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v3.1.3...v3.1.4 795 | 796 | ## 3.1.3 797 | ### What's Changed 798 | * build(deps-dev): bump jest-junit from 15.0.0 to 16.0.0 by @dependabot in https://github.com/codecov/codecov-action/pull/957 799 | * build(deps): bump openpgp from 5.7.0 to 5.8.0 by @dependabot in https://github.com/codecov/codecov-action/pull/958 800 | * build(deps-dev): bump @types/node from 18.15.10 to 18.15.12 by @dependabot in https://github.com/codecov/codecov-action/pull/959 801 | * fix: allow for aarch64 build by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/960 802 | * chore(release): bump to 3.1.3 by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/961 803 | 804 | 805 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v3.1.2...v3.1.3 806 | 807 | ## 3.1.2 808 | ### What's Changed 809 | * build(deps): bump node-fetch from 3.2.4 to 3.2.10 by @dependabot in https://github.com/codecov/codecov-action/pull/835 810 | * build(deps-dev): bump @types/node from 16.11.40 to 18.13.0 by @dependabot in https://github.com/codecov/codecov-action/pull/911 811 | * build(deps-dev): bump @vercel/ncc from 0.34.0 to 0.36.1 by @dependabot in https://github.com/codecov/codecov-action/pull/900 812 | * build(deps-dev): bump typescript from 4.7.4 to 4.9.5 by @dependabot in https://github.com/codecov/codecov-action/pull/905 813 | * Update README.md by @stefanomunarini in https://github.com/codecov/codecov-action/pull/718 814 | * build(deps): bump openpgp from 5.4.0 to 5.5.0 by @dependabot in https://github.com/codecov/codecov-action/pull/819 815 | * build(deps): bump ossf/scorecard-action from 1.1.1 to 2.0.4 by @dependabot in https://github.com/codecov/codecov-action/pull/840 816 | * build(deps): bump @actions/core from 1.9.1 to 1.10.0 by @dependabot in https://github.com/codecov/codecov-action/pull/841 817 | * build(deps): bump @actions/github from 5.0.3 to 5.1.1 by @dependabot in https://github.com/codecov/codecov-action/pull/843 818 | * build(deps): bump actions/upload-artifact from 3.1.0 to 3.1.2 by @dependabot in https://github.com/codecov/codecov-action/pull/896 819 | * build(deps-dev): bump jest-junit from 13.2.0 to 15.0.0 by @dependabot in https://github.com/codecov/codecov-action/pull/872 820 | * build(deps): bump node-fetch from 3.2.10 to 3.3.0 by @dependabot in https://github.com/codecov/codecov-action/pull/869 821 | * build(deps): bump decode-uri-component from 0.2.0 to 0.2.2 by @dependabot in https://github.com/codecov/codecov-action/pull/879 822 | * build(deps): bump json5 from 2.2.1 to 2.2.3 by @dependabot in https://github.com/codecov/codecov-action/pull/895 823 | * codeql-analysis.yml by @minumulasri in https://github.com/codecov/codecov-action/pull/898 824 | * build(deps): bump ossf/scorecard-action from 1.1.1 to 2.1.2 by @dependabot in https://github.com/codecov/codecov-action/pull/889 825 | * build(deps-dev): bump @types/node from 18.13.0 to 18.14.0 by @dependabot in https://github.com/codecov/codecov-action/pull/922 826 | * build(deps): bump openpgp from 5.5.0 to 5.7.0 by @dependabot in https://github.com/codecov/codecov-action/pull/924 827 | * build(deps-dev): bump @types/node from 18.14.0 to 18.14.2 by @dependabot in https://github.com/codecov/codecov-action/pull/927 828 | * Remove unsupported path_to_write_report argument by @jsoref in https://github.com/codecov/codecov-action/pull/851 829 | * Update README to contain correct information - inputs and negate feature by @moshe-azaria-sage in https://github.com/codecov/codecov-action/pull/901 830 | * build(deps-dev): bump @types/node from 18.14.2 to 18.14.6 by @dependabot in https://github.com/codecov/codecov-action/pull/933 831 | * build(deps-dev): bump @types/node from 18.14.6 to 18.15.0 by @dependabot in https://github.com/codecov/codecov-action/pull/937 832 | * build(deps-dev): bump @types/node from 18.15.0 to 18.15.5 by @dependabot in https://github.com/codecov/codecov-action/pull/945 833 | * build(deps): bump node-fetch from 3.3.0 to 3.3.1 by @dependabot in https://github.com/codecov/codecov-action/pull/938 834 | * build(deps-dev): bump @types/node from 18.15.5 to 18.15.6 by @dependabot in https://github.com/codecov/codecov-action/pull/946 835 | * build(deps-dev): bump @types/node from 18.15.6 to 18.15.10 by @dependabot in https://github.com/codecov/codecov-action/pull/947 836 | * build(deps): bump ossf/scorecard-action from 2.1.2 to 2.1.3 by @dependabot in https://github.com/codecov/codecov-action/pull/951 837 | * fix: add in all the extra arguments for uploader by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/955 838 | * chore(release): bump to 3.1.2 by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/956 839 | 840 | ## New Contributors 841 | * @stefanomunarini made their first contribution in https://github.com/codecov/codecov-action/pull/718 842 | * @minumulasri made their first contribution in https://github.com/codecov/codecov-action/pull/898 843 | * @jsoref made their first contribution in https://github.com/codecov/codecov-action/pull/851 844 | * @moshe-azaria-sage made their first contribution in https://github.com/codecov/codecov-action/pull/901 845 | 846 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v3.1.1...v3.1.2 847 | 848 | ## 3.1.1 849 | ### What's Changed 850 | * Update deprecation warning by @slifty in https://github.com/codecov/codecov-action/pull/661 851 | * Create codeql-analysis.yml by @mitchell-codecov in https://github.com/codecov/codecov-action/pull/593 852 | * build(deps): bump node-fetch from 3.2.3 to 3.2.4 by @dependabot in https://github.com/codecov/codecov-action/pull/714 853 | * build(deps-dev): bump typescript from 4.6.3 to 4.6.4 by @dependabot in https://github.com/codecov/codecov-action/pull/713 854 | * README: fix typo by @Evalir in https://github.com/codecov/codecov-action/pull/712 855 | * build(deps): bump github/codeql-action from 1 to 2 by @dependabot in https://github.com/codecov/codecov-action/pull/724 856 | * build(deps-dev): bump @types/jest from 27.4.1 to 27.5.0 by @dependabot in https://github.com/codecov/codecov-action/pull/717 857 | * fix: Remove a blank row by @johnmanjiro13 in https://github.com/codecov/codecov-action/pull/725 858 | * Update README.md with correct badge version by @gsheni in https://github.com/codecov/codecov-action/pull/726 859 | * build(deps-dev): bump @types/node from 17.0.25 to 17.0.33 by @dependabot in https://github.com/codecov/codecov-action/pull/729 860 | * build(deps-dev): downgrade @types/node to 16.11.35 by @dependabot in https://github.com/codecov/codecov-action/pull/734 861 | * build(deps): bump actions/checkout from 2 to 3 by @dependabot in https://github.com/codecov/codecov-action/pull/723 862 | * build(deps): bump @actions/github from 5.0.1 to 5.0.3 by @dependabot in https://github.com/codecov/codecov-action/pull/733 863 | * build(deps): bump @actions/core from 1.6.0 to 1.8.2 by @dependabot in https://github.com/codecov/codecov-action/pull/732 864 | * build(deps-dev): bump @types/node from 16.11.35 to 16.11.36 by @dependabot in https://github.com/codecov/codecov-action/pull/737 865 | * Create scorecards-analysis.yml by @mitchell-codecov in https://github.com/codecov/codecov-action/pull/633 866 | * build(deps): bump ossf/scorecard-action from 1.0.1 to 1.1.0 by @dependabot in https://github.com/codecov/codecov-action/pull/749 867 | * fix: add more verbosity to validation by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/747 868 | * build(deps-dev): bump typescript from 4.6.4 to 4.7.3 by @dependabot in https://github.com/codecov/codecov-action/pull/755 869 | * Regenerate scorecards-analysis.yml by @mitchell-codecov in https://github.com/codecov/codecov-action/pull/750 870 | * build(deps-dev): bump @types/node from 16.11.36 to 16.11.39 by @dependabot in https://github.com/codecov/codecov-action/pull/759 871 | * build(deps-dev): bump @types/node from 16.11.39 to 16.11.40 by @dependabot in https://github.com/codecov/codecov-action/pull/762 872 | * build(deps-dev): bump @vercel/ncc from 0.33.4 to 0.34.0 by @dependabot in https://github.com/codecov/codecov-action/pull/746 873 | * build(deps): bump ossf/scorecard-action from 1.1.0 to 1.1.1 by @dependabot in https://github.com/codecov/codecov-action/pull/757 874 | * build(deps): bump openpgp from 5.2.1 to 5.3.0 by @dependabot in https://github.com/codecov/codecov-action/pull/760 875 | * build(deps): bump actions/upload-artifact from 2.3.1 to 3.1.0 by @dependabot in https://github.com/codecov/codecov-action/pull/748 876 | * build(deps-dev): bump typescript from 4.7.3 to 4.7.4 by @dependabot in https://github.com/codecov/codecov-action/pull/766 877 | * Switch to v3 by @thomasrockhu in https://github.com/codecov/codecov-action/pull/774 878 | * Fix `network` entry in table by @kevmoo in https://github.com/codecov/codecov-action/pull/783 879 | * Trim arguments after splitting them by @mitchell-codecov in https://github.com/codecov/codecov-action/pull/791 880 | * build(deps): bump openpgp from 5.3.0 to 5.4.0 by @dependabot in https://github.com/codecov/codecov-action/pull/799 881 | * build(deps): bump @actions/core from 1.8.2 to 1.9.1 by @dependabot in https://github.com/codecov/codecov-action/pull/798 882 | * Plumb failCi into verification function. by @RobbieMcKinstry in https://github.com/codecov/codecov-action/pull/769 883 | * release: update changelog and version to 3.1.1 by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/828 884 | 885 | ## New Contributors 886 | * @slifty made their first contribution in https://github.com/codecov/codecov-action/pull/661 887 | * @Evalir made their first contribution in https://github.com/codecov/codecov-action/pull/712 888 | * @johnmanjiro13 made their first contribution in https://github.com/codecov/codecov-action/pull/725 889 | * @gsheni made their first contribution in https://github.com/codecov/codecov-action/pull/726 890 | * @kevmoo made their first contribution in https://github.com/codecov/codecov-action/pull/783 891 | * @RobbieMcKinstry made their first contribution in https://github.com/codecov/codecov-action/pull/769 892 | 893 | **Full Changelog**: https://github.com/codecov/codecov-action/compare/v3.1.0...v3.1.1 894 | 895 | ## v3.1.0 896 | ### 3.1.0 897 | ### Features 898 | - #699 Incorporate `xcode` arguments for the Codecov uploader 899 | 900 | ### Dependencies 901 | - #694 build(deps-dev): bump @vercel/ncc from 0.33.3 to 0.33.4 902 | - #696 build(deps-dev): bump @types/node from 17.0.23 to 17.0.25 903 | - #698 build(deps-dev): bump jest-junit from 13.0.0 to 13.2.0 904 | 905 | ## v3.0.0 906 | #### Breaking Changes 907 | - #689 Bump to node16 and small fixes 908 | 909 | ### Features 910 | - #688 Incorporate `gcov` arguments for the Codecov uploader 911 | 912 | ### Dependencies 913 | - #548 build(deps-dev): bump jest-junit from 12.2.0 to 13.0.0 914 | - #603 [Snyk] Upgrade @actions/core from 1.5.0 to 1.6.0 915 | - #628 build(deps): bump node-fetch from 2.6.1 to 3.1.1 916 | - #634 build(deps): bump node-fetch from 3.1.1 to 3.2.0 917 | - #636 build(deps): bump openpgp from 5.0.1 to 5.1.0 918 | - #652 build(deps-dev): bump @vercel/ncc from 0.30.0 to 0.33.3 919 | - #653 build(deps-dev): bump @types/node from 16.11.21 to 17.0.18 920 | - #659 build(deps-dev): bump @types/jest from 27.4.0 to 27.4.1 921 | - #667 build(deps): bump actions/checkout from 2 to 3 922 | - #673 build(deps): bump node-fetch from 3.2.0 to 3.2.3 923 | - #683 build(deps): bump minimist from 1.2.5 to 1.2.6 924 | - #685 build(deps): bump @actions/github from 5.0.0 to 5.0.1 925 | - #681 build(deps-dev): bump @types/node from 17.0.18 to 17.0.23 926 | - #682 build(deps-dev): bump typescript from 4.5.5 to 4.6.3 927 | - #676 build(deps): bump @actions/exec from 1.1.0 to 1.1.1 928 | - #675 build(deps): bump openpgp from 5.1.0 to 5.2.1 929 | 930 | ## v2.1.0 931 | ### 2.1.0 932 | ### Features 933 | - #515 Allow specifying version of Codecov uploader 934 | 935 | ### Dependencies 936 | - #499 build(deps-dev): bump @vercel/ncc from 0.29.0 to 0.30.0 937 | - #508 build(deps): bump openpgp from 5.0.0-5 to 5.0.0 938 | - #514 build(deps-dev): bump @types/node from 16.6.0 to 16.9.0 939 | 940 | ## v2.0.3 941 | ### 2.0.3 942 | ### Fixes 943 | - #464 Fix wrong link in the readme 944 | - #485 fix: Add override OS and linux default to platform 945 | 946 | ### Dependencies 947 | - #447 build(deps): bump openpgp from 5.0.0-4 to 5.0.0-5 948 | - #458 build(deps-dev): bump eslint from 7.31.0 to 7.32.0 949 | - #465 build(deps-dev): bump @typescript-eslint/eslint-plugin from 4.28.4 to 4.29.1 950 | - #466 build(deps-dev): bump @typescript-eslint/parser from 4.28.4 to 4.29.1 951 | - #468 build(deps-dev): bump @types/jest from 26.0.24 to 27.0.0 952 | - #470 build(deps-dev): bump @types/node from 16.4.0 to 16.6.0 953 | - #472 build(deps): bump path-parse from 1.0.6 to 1.0.7 954 | - #473 build(deps-dev): bump @types/jest from 27.0.0 to 27.0.1 955 | - #478 build(deps-dev): bump @typescript-eslint/parser from 4.29.1 to 4.29.2 956 | - #479 build(deps-dev): bump @typescript-eslint/eslint-plugin from 4.29.1 to 4.29.2 957 | - #481 build(deps-dev): bump @types/node from 16.6.0 to 16.6.2 958 | - #483 build(deps-dev): bump @vercel/ncc from 0.29.0 to 0.29.2 959 | - #484 build(deps): bump @actions/core from 1.4.0 to 1.5.0 960 | 961 | ## v2.0.2 962 | #### Fixes 963 | - Underlying uploader fixes issues with tokens not being sent properly for users seeing 964 | `Error!: Error: Error uploading to https://codecov.io: Error: Error uploading to Codecov: Error: Not Found` 965 | - #432 fix: use import to destructure package.json 966 | - #434 fix: openpgp and asn1.js 967 | - #440 2.0.2 token fixes 968 | 969 | ### Dependencies 970 | - #420 Bump eslint from 7.30.0 to 7.31.0 971 | - #433 build(deps-dev): bump @types/node from 16.3.3 to 16.4.0 972 | - #425 build(deps-dev): bump @typescript-eslint/eslint-plugin from 4.28.3 to 4.28.4 973 | - #426 build(deps-dev): bump @typescript-eslint/parser from 4.28.3 to 4.28.4 974 | - #438 Set up Dependabot for github-actions dependencies 975 | 976 | 977 | 978 | ## 2.0.1 979 | ### Fixes 980 | - #424 fix: Issue in building all deep dependencies 981 | 982 | ## 2.0.0 983 | On February 1, 2022, the `v1` uploader will be full sunset and no longer function. This is due 984 | to the deprecation of the underlying bash uploader. This version uses the new [uploader](https://github.com/codecov/uploader). 985 | 986 | The `v2` Action downloads, verifies, and runs the Codecov binary. 987 | 988 | ### Breaking Changes 989 | - Multiple fields have not been transferred from the bash uploader or have been deprecated. Notably 990 | many of the `functionalities` and `gcov_` arguments have been removed. Please check the documentation 991 | for the full list. 992 | 993 | ### Features 994 | - `dry-run` argument allows Codecov flow without uploading reports to Codecov 995 | - (Enterprise only) `slug` allows specifying the repository slug manually 996 | - (Enterprise only) `url` allows changing the upload host 997 | 998 | ## 1.5.2 999 | ### Fixes 1000 | - # fix: Import version properly as string not object 1001 | 1002 | ## 1.5.1 1003 | ### Fixes 1004 | - #320 doc: add github actions badge 1005 | - #336 Update bash uploader to 1.0.3 1006 | - #339 fix: Add action version 1007 | 1008 | ### Dependencies 1009 | - #302 Bump @typescript-eslint/eslint-plugin from 4.22.0 to 4.22.1 1010 | - #303 Bump @typescript-eslint/parser from 4.22.0 to 4.22.1 1011 | - #304 Bump ts-jest from 26.5.5 to 26.5.6 1012 | - #309 Bump lodash from 4.17.19 to 4.17.21 1013 | - #310 Bump hosted-git-info from 2.8.8 to 2.8.9 1014 | - #311 Bump @actions/github from 4.0.0 to 5.0.0 1015 | - #314 Bump eslint from 7.25.0 to 7.27.0 1016 | - #315 Bump @actions/core from 1.2.7 to 1.3.0 1017 | - #316 Bump @typescript-eslint/parser from 4.22.1 to 4.25.0 1018 | - #317 Bump @typescript-eslint/eslint-plugin from 4.22.1 to 4.25.0 1019 | - #319 Bump jest-junit from 12.0.0 to 12.1.0 1020 | - #321 Bump typescript from 4.2.4 to 4.3.2 1021 | - #323 Bump ws from 7.3.1 to 7.4.6 1022 | - #331 Bump eslint from 7.27.0 to 7.28.0 1023 | - #332 Bump @actions/exec from 1.0.4 to 1.1.0 1024 | - #333 Bump @typescript-eslint/parser from 4.25.0 to 4.26.1 1025 | - #334 Bump @typescript-eslint/eslint-plugin from 4.25.0 to 4.26.1 1026 | - #335 Bump @actions/core from 1.3.0 to 1.4.0 1027 | - #337 Bump glob-parent from 5.1.1 to 5.1.2 1028 | 1029 | ## 1.5.0 1030 | ### Features 1031 | - #299 Pull Codecov bash script into the action 1032 | 1033 | ### Dependencies 1034 | - #271 Bump typescript from 4.2.3 to 4.2.4 1035 | - #277 Bump @typescript-eslint/eslint-plugin from 4.16.1 to 4.22.0 1036 | - #278 Bump @typescript-eslint/parser from 4.20.0 to 4.22.0 1037 | - #279 Bump @actions/core from 1.2.6 to 1.2.7 1038 | - #292 Bump ts-jest from 26.5.3 to 26.5.5 1039 | - #293 Bump eslint from 7.21.0 to 7.25.0 1040 | - #297 Bump @types/jest from 26.0.20 to 26.0.23 1041 | - #298 Upgrade to GitHub-native Dependabot 1042 | 1043 | ## 1.4.1 1044 | ### Fixes 1045 | - #287 Update VERSION regex to restrict on digits and dot and move checksums into script 1046 | 1047 | ## 1.4.0 1048 | ### Features 1049 | - #282 Add checksum verification of bash script 1050 | 1051 | ## 1.3.2 1052 | ### Fixes 1053 | - #264 Overwrites pr number for pull_request_target events 1054 | 1055 | ## 1.3.1 1056 | ### Fixes 1057 | - #253 Add `network_filter` to action manifest 1058 | 1059 | ## 1.3.0 1060 | ### Features 1061 | - #252 Add "network_filter" input 1062 | 1063 | ## 1.2.2 1064 | ### Fixes 1065 | - #241 pass root_dir using proper bash arg 1066 | - #244 Overwrite the commit on pull_request* events 1067 | 1068 | ## 1.2.1 1069 | ### Fixes 1070 | - #196 Add parameters to the action.yml 1071 | 1072 | ## 1.2.0 1073 | ### Features 1074 | - #193 Add all the bash params 1075 | 1076 | ### Fixes 1077 | - #193 Fixes issue with working-directory 1078 | 1079 | ## 1.1.1 1080 | ### Fixes 1081 | - #184 Add automations ensure proper builds and deployments 1082 | - #184 Fixes verbose flag 1083 | 1084 | ## 1.1.0 1085 | ### Features 1086 | - #110 Add "working-directory:" input 1087 | - #174 Support Xcode specificed parameters 1088 | 1089 | ### Fixes 1090 | - #172 File is saved as text 1091 | 1092 | ### Dependencies and Misc 1093 | - #166 Bump requestretry from 4.1.1 to 4.1.2 1094 | - #169 Bump typescript from 4.0.5 to 4.1.2 1095 | - #178 Bump @types/jest from 26.0.15 to 26.0.19 -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contribution Guide 2 | 3 | :tada: Thanks for taking the time to contribute! :tada: 4 | 5 | The following is a set of guidelines for contributing to this repository, which is hosted in the [Codecov Organization](https://github.com/codecov) on GitHub. 6 | 7 | ## What does this repo do? 8 | 9 | This repo is a GitHub Action, meaning it integrates with the GitHub Actions CI/CD pipeline. It's meant to take formatted reports with code coverage stats and upload them to codecov.io. Our Node action uses the Actions toolkit to make system calls that allow us to run Codecov's bash uploader inside of Node. Essentially what we're doing in this action is downloading Codecov's bash uploader script from codecov.io/bash, saving it as a file in the current directory, executing the file via `exec` calls, then removing the script from the current directory. 10 | 11 | ## PRs, Issues, and Support 12 | 13 | Feel free to clone, modify code and request a PR to this repository. All PRs and issues will be reviewed by the Codecov team. If your PR/issue has been sitting for a while or if you have any questions, ping us at support@codecov.io 14 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019-2020 Codecov 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | deploy: 2 | $(eval VERSION := $(shell cat src/version)) 3 | git tag -d v5 4 | git push origin :v5 5 | git tag v5 6 | git tag v$(VERSION) -s -m "" 7 | git push origin --tags 8 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Codecov GitHub Action 2 | 3 | [![GitHub Marketplace](https://img.shields.io/badge/Marketplace-v5-undefined.svg?logo=github&logoColor=white&style=flat)](https://github.com/marketplace/actions/codecov) 4 | [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fcodecov%2Fcodecov-action.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fcodecov%2Fcodecov-action?ref=badge_shield) 5 | [![Workflow for Codecov Action](https://github.com/codecov/codecov-action/actions/workflows/main.yml/badge.svg)](https://github.com/codecov/codecov-action/actions/workflows/main.yml) 6 | ### Easily upload coverage reports to Codecov from GitHub Actions 7 | 8 | ## v5 Release 9 | `v5` of the Codecov GitHub Action will use the [Codecov Wrapper](https://github.com/codecov/wrapper) to encapsulate the [CLI](https://github.com/codecov/codecov-cli). This will help ensure that the Action gets updates quicker. 10 | 11 | ### Migration Guide 12 | The `v5` release also coincides with the opt-out feature for tokens for public repositories. In the `Global Upload Token` section of the settings page of an organization in codecov.io, you can set the ability for Codecov to receive a coverage reports from any source. This will allow contributors or other members of a repository to upload without needing access to the Codecov token. For more details see [how to upload without a token](https://docs.codecov.com/docs/codecov-tokens#uploading-without-a-token). 13 | 14 | > [!WARNING] 15 | > **The following arguments have been changed** 16 | > - `file` (this has been deprecated in favor of `files`) 17 | > - `plugin` (this has been deprecated in favor of `plugins`) 18 | 19 | The following arguments have been added: 20 | 21 | - `binary` 22 | - `gcov_args` 23 | - `gcov_executable` 24 | - `gcov_ignore` 25 | - `gcov_include` 26 | - `report_type` 27 | - `skip_validation` 28 | - `swift_project` 29 | 30 | You can see their usage in the `action.yml` [file](https://github.com/codecov/codecov-action/blob/main/action.yml). 31 | 32 | ## v4 Release 33 | `v4` of the Codecov GitHub Action will use the [Codecov CLI](https://github.com/codecov/codecov-cli) to upload coverage reports to Codecov. 34 | 35 | ### Breaking Changes 36 | - Tokenless uploading is unsupported. However, PRs made from forks to the upstream public repos will support tokenless (e.g. contributors to OSS projects do not need the upstream repo's Codecov token). For details, [see our docs](https://docs.codecov.com/docs/codecov-uploader#supporting-token-less-uploads-for-forks-of-open-source-repos-using-codecov) 37 | - Various arguments to the Action have been removed 38 | 39 | ### Dependabot 40 | - For repositories using `Dependabot`, users will need to ensure that it has access to the Codecov token for PRs from Dependabot to upload coverage. To do this, please add your `CODECOV_TOKEN` as a Dependabot Secret. For more information, see ["Configuring access to private registries for Dependabot."](https://docs.github.com/en/code-security/dependabot/working-with-dependabot/configuring-access-to-private-registries-for-dependabot#storing-credentials-for-dependabot-to-use) 41 | 42 | `v3` versions and below will not have access to CLI features (e.g. global upload token, ATS). 43 | 44 | ## Usage 45 | 46 | To integrate Codecov with your Actions pipeline, specify the name of this repository with a tag number (`@v5` is recommended) as a `step` within your `workflow.yml` file. 47 | 48 | > [!WARNING] 49 | > In order for the Action to work seamlessly, you will need to have `curl`, `git`, and `gpg` installed on your runner. You will also need to run the [actions/checkout](https://github.com/actions/checkout) before calling the Codecov action. 50 | 51 | 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](https://docs.codecov.com/docs/adding-the-codecov-token#github-actions) as a `secret`). 52 | 53 | Currently, the Action will identify linux, macos, and windows runners. However, the Action may misidentify other architectures. The OS can be specified as 54 | - alpine 55 | - alpine-arm64 56 | - linux 57 | - linux-arm64 58 | - macos 59 | - windows 60 | 61 | Inside your `.github/workflows/workflow.yml` file: 62 | 63 | ```yaml 64 | steps: 65 | - uses: actions/checkout@main 66 | - uses: codecov/codecov-action@v5 67 | with: 68 | fail_ci_if_error: true # optional (default = false) 69 | files: ./coverage1.xml,./coverage2.xml # optional 70 | flags: unittests # optional 71 | name: codecov-umbrella # optional 72 | token: ${{ secrets.CODECOV_TOKEN }} 73 | verbose: true # optional (default = false) 74 | ``` 75 | 76 | The Codecov token can also be passed in via environment variables: 77 | 78 | ```yaml 79 | steps: 80 | - uses: actions/checkout@main 81 | - uses: codecov/codecov-action@v5 82 | with: 83 | fail_ci_if_error: true # optional (default = false) 84 | files: ./coverage1.xml,./coverage2.xml # optional 85 | flags: unittests # optional 86 | name: codecov-umbrella # optional 87 | verbose: true # optional (default = false) 88 | env: 89 | CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} 90 | ``` 91 | > [!NOTE] 92 | > This assumes that you've set your Codecov token inside *Settings > Secrets* as `CODECOV_TOKEN`. If not, you can [get an upload token](https://docs.codecov.io/docs/frequently-asked-questions#section-where-is-the-repository-upload-token-found-) for your specific repo on [codecov.io](https://www.codecov.io). Keep in mind that secrets are *not* available to forks of repositories. 93 | 94 | ### Using OIDC 95 | For users with [OpenID Connect(OIDC) enabled](https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect), the Codecov token is not necessary. You can use OIDC with the `use_oidc` argument as following. 96 | 97 | ```yaml 98 | - uses: codecov/codecov-action@v5 99 | with: 100 | use_oidc: true 101 | ``` 102 | 103 | Any token supplied will be ignored, as Codecov will default to the OIDC token for verification. 104 | 105 | ## Arguments 106 | 107 | Codecov's Action supports inputs from the user. These inputs, along with their descriptions and usage contexts, are listed in the table below: 108 | 109 | | Input | Description | Required | 110 | | :--- | :--- | :---: | 111 | | `base_sha` | 'The base SHA to select. This is only used in the "pr-base-picking" run command' | Optional 112 | | `binary` | The file location of a pre-downloaded version of the CLI. If specified, integrity checking will be bypassed. | Optional 113 | | `codecov_yml_path` | The location of the codecov.yml file. This is currently 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 114 | | `commit_parent` | SHA (with 40 chars) of what should be the parent of this commit. | Optional 115 | | `directory` | Folder to search for coverage files. Default to the current working directory | Optional 116 | | `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 117 | | `disable_search` | Disable search for coverage files. This is helpful when specifying what files you want to upload with the files option. | Optional 118 | | `disable_safe_directory` | Disable setting safe directory. Set to true to disable. | Optional 119 | | `disable_telem` | Disable sending telemetry data to Codecov. Set to true to disable. | Optional 120 | | `dry_run` | Don't upload files to Codecov | Optional 121 | | `env_vars` | Environment variables to tag the upload with (e.g. PYTHON \| OS,PYTHON) | Optional 122 | | `exclude` | Comma-separated list of folders to exclude from search. | Optional 123 | | `fail_ci_if_error` | On error, exit with non-zero code | Optional 124 | | `files` | Comma-separated explicit list of files to upload. These will be added to the coverage files found for upload. If you wish to only upload the specified files, please consider using "disable-search" to disable uploading other files. | Optional 125 | | `flags` | Comma-separated list of flags to upload to group coverage metrics. | Optional 126 | | `force` | Only used for empty-upload run command | Optional 127 | | `git_service` | Override the git_service (e.g. github_enterprise) | Optional 128 | | `gcov_args` | Extra arguments to pass to gcov | Optional 129 | | `gcov_executable` | gcov executable to run. Defaults to 'gcov' | Optional 130 | | `gcov_ignore` | Paths to ignore during gcov gathering | Optional 131 | | `gcov_include` | Paths to include during gcov gathering | Optional 132 | | `handle_no_reports_found` | If no coverage reports are found, do not raise an exception. | Optional 133 | | `job_code` | | Optional 134 | | `name` | Custom defined name of the upload. Visible in the Codecov UI | Optional 135 | | `network_filter` | Specify a filter on the files listed in the network section of the Codecov report. This will only add files whose path begin with the specified filter. Useful for upload-specific path fixing. | Optional 136 | | `network_prefix` | Specify a prefix on files listed in the network section of the Codecov report. Useful to help resolve path fixing. | Optional 137 | | `os` | Override the assumed OS. Options available at cli.codecov.io | Optional 138 | | `override_branch` | Specify the branch to be displayed with this commit on Codecov | Optional 139 | | `override_build` | Specify the build number manually | Optional 140 | | `override_build_url` | The URL of the build where this is running | Optional 141 | | `override_commit` | Commit SHA (with 40 chars) | Optional 142 | | `override_pr` | Specify the pull request number manually. Used to override pre-existing CI environment variables. | Optional 143 | | `plugins` | Comma-separated list of plugins to run. Specify `noop` to turn off all plugins | Optional 144 | | `recurse_submodules` | Whether to enumerate files inside of submodules for path-fixing purposes. Off by default. | Optional 145 | | `report_code` | The code of the report if using local upload. If unsure, leave unset. Read more here https://docs.codecov.com/docs/the-codecov-cli#how-to-use-local-upload | Optional 146 | | `report_type` | The type of file to upload, coverage by default. Possible values are "test_results", "coverage". | Optional 147 | | `root_dir` | Root folder from which to consider paths on the network section. Defaults to current working directory. | Optional 148 | | `run_command` | Choose which CLI command to run. Options are "upload-coverage", "empty-upload", "pr-base-picking", "send-notifications". "upload-coverage" is run by default.' | Optional 149 | | `skip_validation` | Skip integrity checking of the CLI. This is NOT recommended. | Optional 150 | | `slug` | [Required when using the org token] Set to the owner/repo slug used instead of the private repo token. Only applicable to some Enterprise users. | Optional 151 | | `swift_project` | Specify the swift project name. Useful for optimization. | Optional 152 | | `token` | Repository Codecov token. Used to authorize report uploads | Optional 153 | | `url` | Set to the Codecov instance URl. Used by Dedicated Enterprise Cloud customers. | Optional 154 | | `use_legacy_upload_endpoint` | Use the legacy upload endpoint. | Optional 155 | | `use_oidc` | Use OIDC instead of token. This will ignore any token supplied | Optional 156 | | `use_pypi` | Use the pypi version of the CLI instead of from cli.codecov.io. If specified, integrity checking will be bypassed. | Optional 157 | | `verbose` | Enable verbose logging | Optional 158 | | `version` | Which version of the Codecov CLI to use (defaults to 'latest') | Optional 159 | | `working-directory` | Directory in which to execute codecov.sh | Optional 160 | 161 | ### Example `workflow.yml` with Codecov Action 162 | 163 | ```yaml 164 | name: Example workflow for Codecov 165 | on: [push] 166 | jobs: 167 | run: 168 | runs-on: ${{ matrix.os }} 169 | strategy: 170 | matrix: 171 | os: [ubuntu-latest, macos-latest, windows-latest] 172 | env: 173 | OS: ${{ matrix.os }} 174 | PYTHON: '3.10' 175 | steps: 176 | - uses: actions/checkout@main 177 | - name: Setup Python 178 | uses: actions/setup-python@main 179 | with: 180 | python-version: '3.10' 181 | - name: Generate coverage report 182 | run: | 183 | pip install pytest 184 | pip install pytest-cov 185 | pytest --cov=./ --cov-report=xml 186 | - name: Upload coverage to Codecov 187 | uses: codecov/codecov-action@v5 188 | with: 189 | directory: ./coverage/reports/ 190 | env_vars: OS,PYTHON 191 | fail_ci_if_error: true 192 | files: ./coverage1.xml,./coverage2.xml,!./cache 193 | flags: unittests 194 | name: codecov-umbrella 195 | token: ${{ secrets.CODECOV_TOKEN }} 196 | verbose: true 197 | ``` 198 | ## Contributing 199 | 200 | Contributions are welcome! Check out the [Contribution Guide](CONTRIBUTING.md). 201 | 202 | ## License 203 | 204 | The code in this project is released under the [MIT License](LICENSE). 205 | 206 | [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fcodecov%2Fcodecov-action.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fcodecov%2Fcodecov-action?ref=badge_large) 207 | -------------------------------------------------------------------------------- /action.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # yamllint disable rule:line-length 3 | name: 'Codecov' 4 | description: 'GitHub Action that uploads coverage reports for your repository to codecov.io' 5 | author: 'Thomas Hu <@thomasrockhu-codecov> | Codecov' 6 | inputs: 7 | base_sha: 8 | description: 'The base SHA to select. This is only used in the "pr-base-picking" run command' 9 | required: false 10 | binary: 11 | description: 'The file location of a pre-downloaded version of the CLI. If specified, integrity checking will be bypassed.' 12 | required: false 13 | codecov_yml_path: 14 | description: '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' 15 | required: false 16 | commit_parent: 17 | description: 'SHA (with 40 chars) of what should be the parent of this commit.' 18 | required: false 19 | directory: 20 | description: 'Folder to search for coverage files. Default to the current working directory' 21 | required: false 22 | disable_file_fixes: 23 | description: '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' 24 | required: false 25 | default: 'false' 26 | disable_search: 27 | description: 'Disable search for coverage files. This is helpful when specifying what files you want to upload with the files option.' 28 | required: false 29 | default: 'false' 30 | disable_safe_directory: 31 | description: 'Disable setting safe directory. Set to true to disable.' 32 | required: false 33 | default: 'false' 34 | disable_telem: 35 | description: 'Disable sending telemetry data to Codecov. Set to true to disable.' 36 | required: false 37 | default: 'false' 38 | dry_run: 39 | description: "Don't upload files to Codecov" 40 | required: false 41 | default: 'false' 42 | env_vars: 43 | description: 'Environment variables to tag the upload with (e.g. PYTHON | OS,PYTHON)' 44 | required: false 45 | exclude: 46 | description: 'Comma-separated list of folders to exclude from search.' 47 | required: false 48 | fail_ci_if_error: 49 | description: 'On error, exit with non-zero code' 50 | required: false 51 | default: 'false' 52 | files: 53 | description: 'Comma-separated list of explicit files to upload. These will be added to the coverage files found for upload. If you wish to only upload the specified files, please consider using disable-search to disable uploading other files.' 54 | required: false 55 | flags: 56 | description: 'Comma-separated list of flags to upload to group coverage metrics.' 57 | required: false 58 | force: 59 | description: 'Only used for empty-upload run command' 60 | required: false 61 | git_service: 62 | description: 'Override the git_service (e.g. github_enterprise)' 63 | required: false 64 | default: 'github' 65 | gcov_args: 66 | description: 'Extra arguments to pass to gcov' 67 | required: false 68 | gcov_executable: 69 | description: "gcov executable to run. Defaults to 'gcov'" 70 | required: false 71 | default: 'gcov' 72 | gcov_ignore: 73 | description: 'Paths to ignore during gcov gathering' 74 | required: false 75 | gcov_include: 76 | description: "Paths to include during gcov gathering" 77 | required: false 78 | handle_no_reports_found: 79 | description: 'If no coverage reports are found, do not raise an exception.' 80 | required: false 81 | default: 'false' 82 | job_code: 83 | description: '' 84 | required: false 85 | name: 86 | description: 'Custom defined name of the upload. Visible in the Codecov UI' 87 | required: false 88 | network_filter: 89 | description: 'Specify a filter on the files listed in the network section of the Codecov report. This will only add files whose path begin with the specified filter. Useful for upload-specific path fixing.' 90 | required: false 91 | network_prefix: 92 | description: 'Specify a prefix on files listed in the network section of the Codecov report. Useful to help resolve path fixing.' 93 | required: false 94 | os: 95 | description: 'Override the assumed OS. Options available at cli.codecov.io' 96 | required: false 97 | override_branch: 98 | description: 'Specify the branch to be displayed with this commit on Codecov' 99 | required: false 100 | override_build: 101 | description: 'Specify the build number manually' 102 | required: false 103 | override_build_url: 104 | description: 'The URL of the build where this is running' 105 | required: false 106 | override_commit: 107 | description: 'Commit SHA (with 40 chars)' 108 | required: false 109 | override_pr: 110 | description: 'Specify the pull request number manually. Used to override pre-existing CI environment variables.' 111 | required: false 112 | plugins: 113 | description: 'Comma-separated list of plugins to run. Specify `noop` to turn off all plugins' 114 | required: false 115 | recurse_submodules: 116 | description: 'Whether to enumerate files inside of submodules for path-fixing purposes. Off by default.' 117 | default: 'false' 118 | report_code: 119 | description: 'The code of the report if using local upload. If unsure, leave default. Read more here https://docs.codecov.com/docs/the-codecov-cli#how-to-use-local-upload' 120 | required: false 121 | report_type: 122 | description: 'The type of file to upload, coverage by default. Possible values are "test_results", "coverage".' 123 | required: false 124 | root_dir: 125 | description: 'Root folder from which to consider paths on the network section. Defaults to current working directory.' 126 | required: false 127 | run_command: 128 | description: 'Choose which CLI command to run. Options are "upload-coverage", "empty-upload", "pr-base-picking", "send-notifications". "upload-coverage" is run by default.' 129 | required: false 130 | default: 'upload-coverage' 131 | skip_validation: 132 | description: 'Skip integrity checking of the CLI. This is NOT recommended.' 133 | required: false 134 | default: 'false' 135 | slug: 136 | description: '[Required when using the org token] Set to the owner/repo slug used instead of the private repo token. Only applicable to some Enterprise users.' 137 | required: false 138 | swift_project: 139 | description: 'Specify the swift project name. Useful for optimization.' 140 | required: false 141 | token: 142 | description: 'Repository Codecov token. Used to authorize report uploads' 143 | required: false 144 | url: 145 | description: 'Set to the Codecov instance URl. Used by Dedicated Enterprise Cloud customers.' 146 | required: false 147 | use_legacy_upload_endpoint: 148 | description: 'Use the legacy upload endpoint.' 149 | required: false 150 | default: 'false' 151 | use_oidc: 152 | description: 'Use OIDC instead of token. This will ignore any token supplied' 153 | required: false 154 | default: 'false' 155 | use_pypi: 156 | description: 'Use the pypi version of the CLI instead of from cli.codecov.io' 157 | required: false 158 | default: 'false' 159 | verbose: 160 | description: 'Enable verbose logging' 161 | required: false 162 | default: 'false' 163 | version: 164 | description: "Which version of the Codecov CLI to use (defaults to 'latest')" 165 | required: false 166 | default: 'latest' 167 | working-directory: 168 | description: 'Directory in which to execute codecov.sh' 169 | required: false 170 | 171 | branding: 172 | color: 'red' 173 | icon: 'umbrella' 174 | 175 | runs: 176 | using: "composite" 177 | steps: 178 | - name: Action version 179 | shell: bash 180 | run: | 181 | CC_ACTION_VERSION=$(cat ${GITHUB_ACTION_PATH}/src/version) 182 | echo -e "\033[0;32m==>\033[0m Running Action version $CC_ACTION_VERSION" 183 | - name: Set safe directory 184 | if: ${{ inputs.disable_safe_directory != 'true' }} 185 | shell: bash 186 | run: | 187 | git config --global --add safe.directory "${{ github.workspace }}" 188 | git config --global --add safe.directory "$GITHUB_WORKSPACE" 189 | 190 | - name: Set fork 191 | shell: bash 192 | run: | 193 | CC_FORK="false" 194 | if [ -n "$GITHUB_EVENT_PULL_REQUEST_HEAD_REPO_FULL_NAME" ] && [ "$GITHUB_EVENT_PULL_REQUEST_HEAD_REPO_FULL_NAME" != "$GITHUB_REPOSITORY" ]; 195 | then 196 | echo -e "\033[0;32m==>\033[0m Fork detected" 197 | CC_FORK="true" 198 | fi 199 | echo "CC_FORK=$CC_FORK" >> "$GITHUB_ENV" 200 | env: 201 | GITHUB_EVENT_PULL_REQUEST_HEAD_LABEL: ${{ github.event.pull_request.head.label }} 202 | GITHUB_EVENT_PULL_REQUEST_HEAD_REPO_FULL_NAME: ${{ github.event.pull_request.head.repo.full_name }} 203 | GITHUB_REPOSITORY: ${{ github.repository }} 204 | 205 | - name: Get OIDC token 206 | uses: actions/github-script@v7 207 | id: oidc 208 | with: 209 | script: | 210 | if (process.env.CC_USE_OIDC === 'true' && process.env.CC_FORK != 'true') { 211 | const id_token = await core.getIDToken(process.env.CC_OIDC_AUDIENCE) 212 | return id_token 213 | } 214 | env: 215 | CC_OIDC_AUDIENCE: ${{ inputs.url || 'https://codecov.io' }} 216 | CC_USE_OIDC: ${{ inputs.use_oidc }} 217 | 218 | - name: Get and set token 219 | shell: bash 220 | run: | 221 | if [ "${{ inputs.use_oidc }}" == 'true' ] && [ "$CC_FORK" != 'true' ]; 222 | then 223 | echo "CC_TOKEN=$CC_OIDC_TOKEN" >> "$GITHUB_ENV" 224 | elif [ -n "${{ env.CODECOV_TOKEN }}" ]; 225 | then 226 | echo -e "\033[0;32m==>\033[0m Token set from env" 227 | echo "CC_TOKEN=${{ env.CODECOV_TOKEN }}" >> "$GITHUB_ENV" 228 | else 229 | if [ -n "${{ inputs.token }}" ]; 230 | then 231 | echo -e "\033[0;32m==>\033[0m Token set from input" 232 | CC_TOKEN=$(echo "${{ inputs.token }}" | tr -d '\n') 233 | echo "CC_TOKEN=$CC_TOKEN" >> "$GITHUB_ENV" 234 | fi 235 | fi 236 | env: 237 | CC_OIDC_TOKEN: ${{ steps.oidc.outputs.result }} 238 | CC_OIDC_AUDIENCE: ${{ inputs.url || 'https://codecov.io' }} 239 | 240 | - name: Override branch for forks 241 | shell: bash 242 | run: | 243 | if [ -z "$CC_BRANCH" ] && [ -z "$CC_TOKEN" ] && [ "$CC_FORK" == 'true' ] 244 | then 245 | echo -e "\033[0;32m==>\033[0m Fork detected, setting branch to $GITHUB_EVENT_PULL_REQUEST_HEAD_LABEL" 246 | TOKENLESS="$GITHUB_EVENT_PULL_REQUEST_HEAD_LABEL" 247 | CC_BRANCH="$GITHUB_EVENT_PULL_REQUEST_HEAD_LABEL" 248 | echo "TOKENLESS=$TOKENLESS" >> "$GITHUB_ENV" 249 | fi 250 | 251 | echo "CC_BRANCH=$CC_BRANCH" >> "$GITHUB_ENV" 252 | env: 253 | CC_BRANCH: ${{ inputs.override_branch }} 254 | GITHUB_EVENT_PULL_REQUEST_HEAD_LABEL: ${{ github.event.pull_request.head.label }} 255 | GITHUB_EVENT_PULL_REQUEST_HEAD_REPO_FULL_NAME: ${{ github.event.pull_request.head.repo.full_name }} 256 | GITHUB_REPOSITORY: ${{ github.repository }} 257 | 258 | - name: Override commits and pr for pull requests 259 | shell: bash 260 | run: | 261 | if [ -z "$CC_SHA" ]; 262 | then 263 | CC_SHA="$GITHUB_EVENT_PULL_REQUEST_HEAD_SHA" 264 | fi 265 | if [ -z "$CC_PR" ] && [ "${GITHUB_EVENT_NAME}" == "pull_request_target" ]; 266 | then 267 | CC_PR="$GITHUB_EVENT_NUMBER" 268 | fi 269 | 270 | echo "CC_SHA=$CC_SHA" >> "$GITHUB_ENV" 271 | echo "CC_PR=$CC_PR" >> "$GITHUB_ENV" 272 | env: 273 | CC_PR: ${{ inputs.override_pr }} 274 | CC_SHA: ${{ inputs.override_commit }} 275 | GITHUB_EVENT_NAME: ${{ github.event_name }} 276 | GITHUB_EVENT_NUMBER: ${{ github.event.number }} 277 | GITHUB_EVENT_PULL_REQUEST_HEAD_SHA: ${{ github.event.pull_request.head.sha }} 278 | 279 | - name: Upload coverage to Codecov 280 | run: ${GITHUB_ACTION_PATH}/dist/codecov.sh 281 | shell: bash 282 | working-directory: ${{ inputs.working-directory }} 283 | env: 284 | CC_BASE_SHA: ${{ inputs.base_sha }} 285 | CC_BINARY: ${{ inputs.binary }} 286 | CC_BUILD: ${{ inputs.override_build }} 287 | CC_BUILD_URL: ${{ inputs.override_build_url }} 288 | CC_CODE: ${{ inputs.report_code }} 289 | CC_DIR: ${{ inputs.directory }} 290 | CC_DISABLE_FILE_FIXES: ${{ inputs.disable_file_fixes }} 291 | CC_DISABLE_SEARCH: ${{ inputs.disable_search }} 292 | CC_DISABLE_TELEM: ${{ inputs.disable_telem }} 293 | CC_DRY_RUN: ${{ inputs.dry_run }} 294 | CC_ENTERPRISE_URL: ${{ inputs.url }} 295 | CC_ENV: ${{ inputs.env_vars }} 296 | CC_EXCLUDES: ${{ inputs.exclude }} 297 | CC_FAIL_ON_ERROR: ${{ inputs.fail_ci_if_error }} 298 | CC_FILES: ${{ inputs.files }} 299 | CC_FLAGS: ${{ inputs.flags }} 300 | CC_FORCE: ${{ inputs.force }} 301 | CC_GCOV_ARGS: ${{ inputs.gcov_args }} 302 | CC_GCOV_EXECUTABLE: ${{ inputs.gcov_executable }} 303 | CC_GCOV_IGNORE: ${{ inputs.gcov_ignore }} 304 | CC_GCOV_INCLUDE: ${{ inputs.gcov_include }} 305 | CC_GIT_SERVICE: ${{ inputs.git_service }} 306 | CC_HANDLE_NO_REPORTS_FOUND: ${{ inputs.handle_no_reports_found }} 307 | CC_JOB_CODE: ${{ inputs.job_code }} 308 | CC_LEGACY: ${{ inputs.use_legacy_upload_endpoint }} 309 | CC_NAME: ${{ inputs.name }} 310 | CC_NETWORK_FILTER: ${{ inputs.network_filter }} 311 | CC_NETWORK_PREFIX: ${{ inputs.network_prefix }} 312 | CC_NETWORK_ROOT_FOLDER: ${{ inputs.root_dir }} 313 | CC_OS: ${{ inputs.os }} 314 | CC_PARENT_SHA: ${{ inputs.commit_parent }} 315 | CC_PLUGINS: ${{ inputs.plugins }} 316 | CC_RECURSE_SUBMODULES: ${{ inputs.recurse_submodules }} 317 | CC_REPORT_TYPE: ${{ inputs.report_type }} 318 | CC_RUN_CMD: ${{ inputs.run_command }} 319 | CC_SERVICE: ${{ inputs.git_service }} 320 | CC_SKIP_VALIDATION: ${{ inputs.skip_validation }} 321 | CC_SLUG: ${{ inputs.slug }} 322 | CC_SWIFT_PROJECT: ${{ inputs.swift_project }} 323 | CC_USE_PYPI: ${{ inputs.use_pypi }} 324 | CC_VERBOSE: ${{ inputs.verbose }} 325 | CC_VERSION: ${{ inputs.version }} 326 | CC_YML_PATH: ${{ inputs.codecov_yml_path }} 327 | -------------------------------------------------------------------------------- /changelog.py: -------------------------------------------------------------------------------- 1 | import json 2 | import re 3 | import subprocess 4 | 5 | def update_changelog(): 6 | with open('src/version', 'r') as f: 7 | version = f.read() 8 | changelog = [f"## v{version}"] 9 | changelog.append("### What\'s Changed") 10 | 11 | with open('CHANGELOG.md', 'r') as f: 12 | previous = f.readline().replace("##", '').strip() 13 | 14 | if previous == version: 15 | print(f"No changes to version {version}") 16 | return 17 | print(f"Adding logs from {previous}..v{version}") 18 | 19 | raw_current_branch = subprocess.run([ 20 | "git", 21 | "branch", 22 | "--show-current", 23 | ], capture_output=True) 24 | current_branch = raw_current_branch.stdout.decode('utf-8').strip() 25 | 26 | raw_commits = subprocess.run([ 27 | "git", 28 | "log", 29 | f"{previous}..{current_branch}", 30 | "--oneline", 31 | ], capture_output=True) 32 | commits = [line[:7] for line in raw_commits.stdout.decode('utf-8').split('\n')] 33 | print(commits) 34 | 35 | prs = set() 36 | for commit in commits: 37 | if not commit: 38 | continue 39 | commit_output = subprocess.run([ 40 | 'gh', 41 | 'pr', 42 | 'list', 43 | '--json', 44 | 'author,number,title,url', 45 | '--search', 46 | f'"{commit}"', 47 | '--state', 48 | 'merged', 49 | ], capture_output=True) 50 | 51 | commit_details = commit_output.stdout.decode('utf-8') 52 | if not commit_details or not json.loads(commit_details): 53 | continue 54 | commit_details = json.loads(commit_details)[0] 55 | 56 | 57 | if not commit_details['number']: 58 | continue 59 | if commit_details['number'] in prs: 60 | continue 61 | prs.add(commit_details['number']) 62 | changelog.append(f"* {commit_details['title']} by @{commit_details['author']['login']} in {commit_details['url']}") 63 | 64 | changelog.append('\n') 65 | changelog.append(f"**Full Changelog**: https://github.com/codecov/codecov-action/compare/{previous}..v{version}\n") 66 | 67 | with open('CHANGELOG.md', 'r') as f: 68 | for line in f: 69 | changelog.append(line.strip()) 70 | 71 | with open('CHANGELOG.md', 'w') as f: 72 | f.write('\n'.join(changelog)) 73 | 74 | 75 | if __name__=="__main__": 76 | update_changelog() 77 | -------------------------------------------------------------------------------- /demo/calculator/calculator.test.ts: -------------------------------------------------------------------------------- 1 | import Calculator from './calculator'; 2 | 3 | test('adds 2 + 3 to equal 5', () => { 4 | const calc = new Calculator(); 5 | expect(calc.add(2, 3)).toBe(5); 6 | }); 7 | 8 | test('subtracts 2 - 3 to equal -1', () => { 9 | const calc = new Calculator(); 10 | expect(calc.subtract(2, 3)).toBe(-1); 11 | }); 12 | -------------------------------------------------------------------------------- /demo/calculator/calculator.ts: -------------------------------------------------------------------------------- 1 | export default class Calculator { 2 | 3 | add(x : number, y : number) : number { 4 | return x + y; 5 | } 6 | 7 | subtract(x: number, y: number) : number { 8 | return x - y; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /demo/coverage-test/coverage.test.ts: -------------------------------------------------------------------------------- 1 | import Coverage from './coverage'; 2 | 3 | test('test uncovered if', () => { 4 | const coverageObj = new Coverage(); 5 | expect(coverageObj.uncovered_if()).toEqual(false); 6 | }); 7 | 8 | test('fully covered', () => { 9 | const coverageObj = new Coverage(); 10 | expect(coverageObj.fully_covered()).toEqual(true); 11 | }); 12 | -------------------------------------------------------------------------------- /demo/coverage-test/coverage.ts: -------------------------------------------------------------------------------- 1 | export default class Coverage { 2 | 3 | //This function is tested and part of it is uncovered 4 | uncovered_if = (a = true) => { 5 | if (a == true) { 6 | return false 7 | } else { 8 | return true 9 | } 10 | } 11 | 12 | //This function will be fully covered 13 | fully_covered = () => { 14 | return true 15 | } 16 | 17 | //This function will not be tested by unit tests 18 | uncovered = () => { 19 | return true 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /dist/codecov.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | CC_WRAPPER_VERSION="0.2.1" 3 | set +u 4 | say() { 5 | echo -e "$1" 6 | } 7 | exit_if_error() { 8 | say "$r==> $1$x" 9 | if [ "$CC_FAIL_ON_ERROR" = true ]; 10 | then 11 | say "$r Exiting...$x" 12 | exit 1; 13 | fi 14 | } 15 | lower() { 16 | echo $(echo $1 | sed 's/CC//' | sed 's/_/-/g' | tr '[:upper:]' '[:lower:]') 17 | } 18 | k_arg() { 19 | if [ -n "$(eval echo \$"CC_$1")" ]; 20 | then 21 | echo "--$(lower "$1")" 22 | fi 23 | } 24 | v_arg() { 25 | if [ -n "$(eval echo \$"CC_$1")" ]; 26 | then 27 | echo "$(eval echo \$"CC_$1")" 28 | fi 29 | } 30 | write_bool_args() { 31 | if [ "$(eval echo \$$1)" = "true" ] || [ "$(eval echo \$$1)" = "1" ]; 32 | then 33 | echo "-$(lower $1)" 34 | fi 35 | } 36 | b="\033[0;36m" # variables/constants 37 | g="\033[0;32m" # info/debug 38 | r="\033[0;31m" # errors 39 | x="\033[0m" 40 | say " _____ _ 41 | / ____| | | 42 | | | ___ __| | ___ ___ _____ __ 43 | | | / _ \\ / _\` |/ _ \\/ __/ _ \\ \\ / / 44 | | |___| (_) | (_| | __/ (_| (_) \\ V / 45 | \\_____\\___/ \\__,_|\\___|\\___\\___/ \\_/ 46 | $r Wrapper-$CC_WRAPPER_VERSION$x 47 | " 48 | CC_VERSION="${CC_VERSION:-latest}" 49 | CC_FAIL_ON_ERROR="${CC_FAIL_ON_ERROR:-false}" 50 | CC_RUN_CMD="${CC_RUN_CMD:-upload-coverage}" 51 | if [ -n "$CC_BINARY" ]; 52 | then 53 | if [ -f "$CC_BINARY" ]; 54 | then 55 | c_filename=$CC_BINARY 56 | c_command=$CC_BINARY 57 | else 58 | exit_if_error "Could not find binary file $CC_BINARY" 59 | fi 60 | elif [ "$CC_USE_PYPI" == "true" ]; 61 | then 62 | if ! pip install codecov-cli"$([ "$CC_VERSION" == "latest" ] && echo "" || echo "==$CC_VERSION" )"; then 63 | exit_if_error "Could not install via pypi." 64 | exit 65 | fi 66 | c_command="codecovcli" 67 | else 68 | if [ -n "$CC_OS" ]; 69 | then 70 | say "$g==>$x Overridden OS: $b${CC_OS}$x" 71 | else 72 | CC_OS="windows" 73 | family=$(uname -s | tr '[:upper:]' '[:lower:]') 74 | [[ $family == "darwin" ]] && CC_OS="macos" 75 | [[ $family == "linux" ]] && CC_OS="linux" 76 | [[ $CC_OS == "linux" ]] && \ 77 | osID=$(grep -e "^ID=" /etc/os-release | cut -c4-) 78 | [[ $osID == "alpine" ]] && CC_OS="alpine" 79 | [[ $(arch) == "aarch64" && $family == "linux" ]] && CC_OS+="-arm64" 80 | say "$g==>$x Detected $b${CC_OS}$x" 81 | fi 82 | c_filename="codecov" 83 | [[ $CC_OS == "windows" ]] && c_filename+=".exe" 84 | c_command="./$c_filename" 85 | [[ $CC_OS == "macos" ]] && \ 86 | ! command -v gpg 2>&1 >/dev/null && \ 87 | HOMEBREW_NO_AUTO_UPDATE=1 brew install gpg 88 | c_url="https://cli.codecov.io" 89 | c_url="$c_url/${CC_VERSION}" 90 | c_url="$c_url/${CC_OS}/${c_filename}" 91 | say "$g ->$x Downloading $b${c_url}$x" 92 | curl -O --retry 5 --retry-delay 2 "$c_url" 93 | say "$g==>$x Finishing downloading $b${CC_OS}:${CC_VERSION}$x" 94 | version_url="https://cli.codecov.io/api/${CC_OS}/${CC_VERSION}" 95 | version=$(curl -s "$version_url" -H "Accept:application/json" | tr \{ '\n' | tr , '\n' | tr \} '\n' | grep "\"version\"" | awk -F'"' '{print $4}' | tail -1) 96 | say " Version: $b$version$x" 97 | say " " 98 | fi 99 | if [ "$CC_SKIP_VALIDATION" == "true" ] || [ -n "$CC_BINARY" ] || [ "$CC_USE_PYPI" == "true" ]; 100 | then 101 | say "$r==>$x Bypassing validation..." 102 | else 103 | CC_PUBLIC_PGP_KEY=$(curl -s https://keybase.io/codecovsecurity/pgp_keys.asc) 104 | echo "${CC_PUBLIC_PGP_KEY}" | \ 105 | gpg --no-default-keyring --import 106 | # One-time step 107 | say "$g==>$x Verifying GPG signature integrity" 108 | sha_url="https://cli.codecov.io" 109 | sha_url="${sha_url}/${CC_VERSION}/${CC_OS}" 110 | sha_url="${sha_url}/${c_filename}.SHA256SUM" 111 | say "$g ->$x Downloading $b${sha_url}$x" 112 | say "$g ->$x Downloading $b${sha_url}.sig$x" 113 | say " " 114 | curl -Os --retry 5 --retry-delay 2 --connect-timeout 2 "$sha_url" 115 | curl -Os --retry 5 --retry-delay 2 --connect-timeout 2 "${sha_url}.sig" 116 | if ! gpg --verify "${c_filename}.SHA256SUM.sig" "${c_filename}.SHA256SUM"; 117 | then 118 | exit_if_error "Could not verify signature. Please contact Codecov if problem continues" 119 | fi 120 | if ! (shasum -a 256 -c "${c_filename}.SHA256SUM" 2>/dev/null || \ 121 | sha256sum -c "${c_filename}.SHA256SUM"); 122 | then 123 | exit_if_error "Could not verify SHASUM. Please contact Codecov if problem continues" 124 | fi 125 | say "$g==>$x CLI integrity verified" 126 | say 127 | chmod +x "$c_command" 128 | fi 129 | if [ -n "$CC_BINARY_LOCATION" ]; 130 | then 131 | mkdir -p "$CC_BINARY_LOCATION" && mv "$c_filename" $_ 132 | say "$g==>$x Codecov binary moved to ${CC_BINARY_LOCATION}" 133 | fi 134 | if [ "$CC_DOWNLOAD_ONLY" = "true" ]; 135 | then 136 | say "$g==>$x Codecov download only called. Exiting..." 137 | fi 138 | c_cli_args=() 139 | c_cli_args+=( $(k_arg AUTO_LOAD_PARAMS_FROM) $(v_arg AUTO_LOAD_PARAMS_FROM)) 140 | c_cli_args+=( $(k_arg ENTERPRISE_URL) $(v_arg ENTERPRISE_URL)) 141 | if [ -n "$CC_YML_PATH" ] 142 | then 143 | c_cli_args+=( "--codecov-yml-path" ) 144 | c_cli_args+=( "$CC_YML_PATH" ) 145 | fi 146 | c_cli_args+=( $(write_bool_args CC_DISABLE_TELEM) ) 147 | c_cli_args+=( $(write_bool_args CC_VERBOSE) ) 148 | if [ -n "$CC_TOKEN_VAR" ]; 149 | then 150 | token="$(eval echo \$$CC_TOKEN_VAR)" 151 | else 152 | token="$(eval echo $CC_TOKEN)" 153 | fi 154 | say "$g ->$x Token of length ${#token} detected" 155 | token_str="" 156 | token_arg=() 157 | if [ -n "$token" ]; 158 | then 159 | token_str+=" -t " 160 | token_arg+=( " -t " "$token") 161 | fi 162 | c_args=() 163 | if [ "$CC_RUN_CMD" == "upload-coverage" ]; then 164 | # Args for create commit 165 | c_args+=( $(write_bool_args CC_FAIL_ON_ERROR) ) 166 | c_args+=( $(k_arg GIT_SERVICE) $(v_arg GIT_SERVICE)) 167 | c_args+=( $(k_arg PARENT_SHA) $(v_arg PARENT_SHA)) 168 | c_args+=( $(k_arg PR) $(v_arg PR)) 169 | c_args+=( $(k_arg SHA) $(v_arg SHA)) 170 | c_args+=( $(k_arg SLUG) $(v_arg SLUG)) 171 | # Args for create report 172 | c_args+=( $(k_arg CODE) $(v_arg CODE)) 173 | # Args for do upload 174 | c_args+=( $(k_arg ENV) $(v_arg ENV)) 175 | OLDIFS=$IFS;IFS=, 176 | c_args+=( $(k_arg BRANCH) $(v_arg BRANCH)) 177 | c_args+=( $(k_arg BUILD) $(v_arg BUILD)) 178 | c_args+=( $(k_arg BUILD_URL) $(v_arg BUILD_URL)) 179 | c_args+=( $(k_arg DIR) $(v_arg DIR)) 180 | c_args+=( $(write_bool_args CC_DISABLE_FILE_FIXES) ) 181 | c_args+=( $(write_bool_args CC_DISABLE_SEARCH) ) 182 | c_args+=( $(write_bool_args CC_DRY_RUN) ) 183 | if [ -n "$CC_EXCLUDES" ]; 184 | then 185 | for directory in $CC_EXCLUDES; do 186 | c_args+=( "--exclude" "$directory" ) 187 | done 188 | fi 189 | if [ -n "$CC_FILES" ]; 190 | then 191 | for file in $CC_FILES; do 192 | c_args+=( "--file" "$file" ) 193 | done 194 | fi 195 | if [ -n "$CC_FLAGS" ]; 196 | then 197 | for flag in $CC_FLAGS; do 198 | c_args+=( "--flag" "$flag" ) 199 | done 200 | fi 201 | c_args+=( $(k_arg GCOV_ARGS) $(v_arg GCOV_ARGS)) 202 | c_args+=( $(k_arg GCOV_EXECUTABLE) $(v_arg GCOV_EXECUTABLE)) 203 | c_args+=( $(k_arg GCOV_IGNORE) $(v_arg GCOV_IGNORE)) 204 | c_args+=( $(k_arg GCOV_INCLUDE) $(v_arg GCOV_INCLUDE)) 205 | c_args+=( $(write_bool_args CC_HANDLE_NO_REPORTS_FOUND) ) 206 | c_args+=( $(write_bool_args CC_RECURSE_SUBMODULES) ) 207 | c_args+=( $(k_arg JOB_CODE) $(v_arg JOB_CODE)) 208 | c_args+=( $(write_bool_args CC_LEGACY) ) 209 | if [ -n "$CC_NAME" ]; 210 | then 211 | c_args+=( "--name" "$CC_NAME" ) 212 | fi 213 | c_args+=( $(k_arg NETWORK_FILTER) $(v_arg NETWORK_FILTER)) 214 | c_args+=( $(k_arg NETWORK_PREFIX) $(v_arg NETWORK_PREFIX)) 215 | c_args+=( $(k_arg NETWORK_ROOT_FOLDER) $(v_arg NETWORK_ROOT_FOLDER)) 216 | if [ -n "$CC_PLUGINS" ]; 217 | then 218 | for plugin in $CC_PLUGINS; do 219 | c_args+=( "--plugin" "$plugin" ) 220 | done 221 | fi 222 | c_args+=( $(k_arg REPORT_TYPE) $(v_arg REPORT_TYPE)) 223 | c_args+=( $(k_arg SWIFT_PROJECT) $(v_arg SWIFT_PROJECT)) 224 | IFS=$OLDIFS 225 | elif [ "$CC_RUN_CMD" == "empty-upload" ]; then 226 | c_args+=( $(k_arg BRANCH) $(v_arg BRANCH)) 227 | c_args+=( $(write_bool_args CC_FAIL_ON_ERROR) ) 228 | c_args+=( $(write_bool_args CC_FORCE) ) 229 | c_args+=( $(k_arg GIT_SERVICE) $(v_arg GIT_SERVICE)) 230 | c_args+=( $(k_arg PARENT_SHA) $(v_arg PARENT_SHA)) 231 | c_args+=( $(k_arg PR) $(v_arg PR)) 232 | c_args+=( $(k_arg SHA) $(v_arg SHA)) 233 | c_args+=( $(k_arg SLUG) $(v_arg SLUG)) 234 | elif [ "$CC_RUN_CMD" == "pr-base-picking" ]; then 235 | c_args+=( $(k_arg BASE_SHA) $(v_arg BASE_SHA)) 236 | c_args+=( $(k_arg PR) $(v_arg PR)) 237 | c_args+=( $(k_arg SLUG) $(v_arg SLUG)) 238 | c_args+=( $(k_arg SERVICE) $(v_arg SERVICE)) 239 | elif [ "$CC_RUN_CMD" == "send-notifications" ]; then 240 | c_args+=( $(k_arg SHA) $(v_arg SHA)) 241 | c_args+=( $(write_bool_args CC_FAIL_ON_ERROR) ) 242 | c_args+=( $(k_arg GIT_SERVICE) $(v_arg GIT_SERVICE)) 243 | c_args+=( $(k_arg SLUG) $(v_arg SLUG)) 244 | else 245 | exit_if_error "Invalid run command specified: $CC_RUN_CMD" 246 | exit 247 | fi 248 | unset NODE_OPTIONS 249 | # github.com/codecov/uploader/issues/475 250 | say "$g==>$x Running $CC_RUN_CMD" 251 | say " $b$c_command $(echo "${c_cli_args[@]}") $CC_RUN_CMD$token_str $(echo "${c_args[@]}")$x" 252 | if ! $c_command \ 253 | ${c_cli_args[*]} \ 254 | ${CC_RUN_CMD} \ 255 | ${token_arg[*]} \ 256 | "${c_args[@]}"; 257 | then 258 | exit_if_error "Failed to run $CC_RUN_CMD" 259 | fi 260 | -------------------------------------------------------------------------------- /hooks/pre-commit: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | 5 | cp src/scripts/dist/codecov.sh dist/codecov.sh 6 | git add dist/codecov.sh 7 | 8 | git diff --cached --name-only | if grep --quiet "src/version" 9 | then 10 | python changelog.py 11 | fi 12 | 13 | git add CHANGELOG.md 14 | -------------------------------------------------------------------------------- /install.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | if ! [ -e .git ]; then 4 | echo "Please run this from repo root directory" 5 | exit 1 6 | fi 7 | 8 | cd .git/hooks 9 | for i in pre-commit; do 10 | rm -fv $i 11 | ln -sv ../../hooks/$i 12 | done 13 | -------------------------------------------------------------------------------- /src/version: -------------------------------------------------------------------------------- 1 | 5.4.3 2 | --------------------------------------------------------------------------------