Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-17449

Github workflow Unhandled error: TypeError: Cannot read properties of undefined (reading 'listWorkflowRunArtifacts')

    XMLWordPrintable

Details

    Description

      Dependency Tree Reporter check fails with the following error, after upgrading github actions/github-script to v6.3.3:

      Unhandled error: TypeError: Cannot read properties of undefined (reading 'listWorkflowRunArtifacts')
      
          at callAsyncFunction (/home/runner/work/_actions/actions/github-script/v6.3.3/dist/index.js:13357:12)
          at main (/home/runner/work/_actions/actions/github-script/v6.3.3/dist/index.js:13452:26)
          at Module.858 (/home/runner/work/_actions/actions/github-script/v6.3.3/dist/index.js:13429:1)
          at __webpack_require__ (/home/runner/work/_actions/actions/github-script/v6.3.3/dist/index.js:24:31)
          at startup (/home/runner/work/_actions/actions/github-script/v6.3.3/dist/index.js:43:19)
          at /home/runner/work/_actions/actions/github-script/v6.3.3/dist/index.js:49:18
          at Object.<anonymous> (/home/runner/work/_actions/actions/github-script/v6.3.3/dist/index.js:52:10)
          at Module._compile (node:internal/modules/cjs/loader:1101:14)
          at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
      
      

      Due to a breaking change in actions/github-script v5, the method name should now be github.rest.actions.listWorkflowRunArtifacts instead of
      github.actions.listWorkflowRunArtifacts, and

      github.rest.actions.downloadArtifact instead of
      github.actions.downloadArtifact

      See https://github.com/actions/github-script#breaking-changes-in-v5

      Attachments

        Issue Links

          Activity

            People

              cfang@redhat.com Cheng Fang
              cfang@redhat.com Cheng Fang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: