s0 / git-publish-subdir-action

GitHub Action to push a subdirectory as a branch to any git repo (e.g. for GitHub Pages)
https://github.com/marketplace/actions/push-git-subdirectory-as-branch
MIT License
212 stars 36 forks source link

fix: Update ncc version to fix generation of distribution #107

Closed jcfr closed 1 month ago

jcfr commented 1 month ago

This commit addresses the following warning:

npm warn deprecated @zeit/ncc@0.22.3: @zeit/ncc is no longer maintained. Please use @vercel/ncc instead.

and fixes the following error:

ncc: Compiling file index.js
Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:79:19)
    at Object.createHash (node:crypto:139:10)
    at hashOf (/home/runner/work/git-publish-subdir-action/git-publish-subdir-action/action/node_modules/@zeit/ncc/dist/ncc/index.js.cache.js:3:58216)
    at module.exports (/home/runner/work/git-publish-subdir-action/git-publish-subdir-action/action/node_modules/@zeit/ncc/dist/ncc/index.js.cache.js:3:60642)
    at runCmd (/home/runner/work/git-publish-subdir-action/git-publish-subdir-action/action/node_modules/@zeit/ncc/dist/ncc/cli.js.cache.js:1:47355)
    at 819 (/home/runner/work/git-publish-subdir-action/git-publish-subdir-action/action/node_modules/@zeit/ncc/dist/ncc/cli.js.cache.js:1:44227)
    at __webpack_require__ (/home/runner/work/git-publish-subdir-action/git-publish-subdir-action/action/node_modules/@zeit/ncc/dist/ncc/cli.js.cache.js:1:169)
    at startup (/home/runner/work/git-publish-subdir-action/git-publish-subdir-action/action/node_modules/@zeit/ncc/dist/ncc/cli.js.cache.js:1:339)
    at module.exports.8 (/home/runner/work/git-publish-subdir-action/git-publish-subdir-action/action/node_modules/@zeit/ncc/dist/ncc/cli.js.cache.js:1:371)
    at /home/runner/work/git-publish-subdir-action/git-publish-subdir-action/action/node_modules/@zeit/ncc/dist/ncc/cli.js.cache.js:1:381 {
  opensslErrorStack: [
    'error:03000086:digital envelope routines::initialization error',
    'error:0308010C:digital envelope routines::unsupported'
  ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
stacklok-cloud[bot] commented 1 month ago

Minder Vulnerability Report ✅

Minder analyzed this PR and found it does not add any new vulnerable dependencies.

Vulnerability scan of 30860fc9:

  • 🐞 vulnerable packages: 0
  • 🛠 fixes available for: 0
stacklok-cloud[bot] commented 1 month ago

Dependency Information

Minder analyzed the dependencies introduced in this pull request and detected that some dependencies do not meet your security profile.

📦 Dependency: @vercel/ncc

Trusty Score: 0

Scoring details | Component | Score | | ------------------- | ----: | | Malicious | false | | Package activity | 0 | | Provenance | 0 |
codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.33%. Comparing base (65d1af0) to head (30860fc). Report is 8 commits behind head on develop.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #107 +/- ## =========================================== + Coverage 90.30% 94.33% +4.03% =========================================== Files 1 1 Lines 196 212 +16 Branches 41 51 +10 =========================================== + Hits 177 200 +23 + Misses 14 12 -2 + Partials 5 0 -5 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.