diff --git a/.github/workflows/issues-dependency-check.yml b/.github/workflows/issues-dependency-check.yml index 341f3e6..861fb95 100644 --- a/.github/workflows/issues-dependency-check.yml +++ b/.github/workflows/issues-dependency-check.yml @@ -11,7 +11,11 @@ jobs: - name: Check for unresolved dependencies uses: actions/github-script@v7 with: + github-token: ${{ secrets.GITHUB_TOKEN }} script: | + const core = require('@actions/core'); + const github = require('@actions/github'); + // Updated regex to match multiple issue numbers const issueRegex = /depends on #(\d+(?:\s+#\d+)*)/ig; @@ -52,6 +56,4 @@ jobs: } } - run().catch(error => core.setFailed(error.message)); - - + run().catch(error => core.setFailed(error.message)); \ No newline at end of file