diff --git a/.github/workflows/coana-cli.yml b/.github/workflows/coana.yml similarity index 67% rename from .github/workflows/coana-cli.yml rename to .github/workflows/coana.yml index ee10efc..16b8258 100644 --- a/.github/workflows/coana-cli.yml +++ b/.github/workflows/coana.yml @@ -2,7 +2,7 @@ name: Coana CLI -on: pull_request +on: push jobs: # run extension unit tests @@ -11,8 +11,6 @@ jobs: defaults: run: working-directory: . - permissions: - pull-requests: write steps: - uses: actions/checkout@v3 @@ -26,12 +24,7 @@ jobs: - name: Run Coana CLI id: coana-cli - uses: coana-tech/coana-action@v5 - - - name: Print output - run: echo "Markdown ${{steps.coana-cli.outputs.markdown}}" - - - uses: mshick/add-pr-comment@v2 + uses: coana-tech/coana-action/vulnerability-analysis@main with: - message: | - ${{steps.coana-cli.outputs.markdown}} + apiKey: ${{ secrets.COANA_API_TOKEN }} + repoUrl: https://github.com/${{github.repository}} diff --git a/README.md b/README.md index fb645c0..1f42318 100644 --- a/README.md +++ b/README.md @@ -1 +1,3 @@ # Coana test repo + +Tests the Coana GitHub action and GitLab CI integration. diff --git a/package-lock.json b/package-lock.json index 5440055..8ab2953 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,8 @@ "dependencies": { "chalk": "^5.2.0", "got": "^11.8.3", - "kleur": "^4.1.5" + "kleur": "^4.1.5", + "lodash": "^4.17.21" } }, "node_modules/@sindresorhus/is": { @@ -237,6 +238,11 @@ "node": ">=6" } }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + }, "node_modules/lowercase-keys": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", @@ -491,6 +497,11 @@ "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz", "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==" }, + "lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + }, "lowercase-keys": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", diff --git a/package.json b/package.json index 4c15823..17a94fe 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "dependencies": { "chalk": "^5.2.0", "got": "^11.8.3", - "kleur": "^4.1.5" + "kleur": "^4.1.5", + "lodash": "^4.17.21" } }