diff --git a/.github/workflows/auto-merge-dependabot.yml b/.github/workflows/auto-merge-dependabot.yml index 7315fcd..53e4b61 100644 --- a/.github/workflows/auto-merge-dependabot.yml +++ b/.github/workflows/auto-merge-dependabot.yml @@ -6,23 +6,25 @@ on: jobs: worker: runs-on: ubuntu-latest - if: github.actor == 'dependabot[bot]' + steps: - name: Automerge - uses: actions/github-script@latest + uses: actions/github-script@v6 with: + github-token: ${{ secrets.GITHUB_TOKEN }} script: | console.log("Context: ", context); - await github.pulls.createReview({ + + await github.rest.pulls.createReview({ owner: context.repo.owner, repo: context.repo.repo, pull_number: context.payload.pull_request.number, event: 'APPROVE' }); - await github.pulls.merge({ + + await github.rest.pulls.merge({ owner: context.repo.owner, repo: context.repo.repo, pull_number: context.payload.pull_request.number }); - github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/backend-app/package-lock.json b/backend-app/package-lock.json index 9fc41e9..f9c740f 100644 --- a/backend-app/package-lock.json +++ b/backend-app/package-lock.json @@ -9,7 +9,7 @@ "version": "1.0.0", "license": "ISC", "dependencies": { - "axios": "1.6.0", + "axios": "1.7.4", "bcrypt": "5.1.1", "chai": "4.3.10", "compression": "1.7.4", @@ -34,7 +34,6 @@ "mocha": "10.2.0", "mongoose": "7.5.0", "morgan": "1.10.0", - "nodemon": "3.0.2", "prettier": "3.0.3", "qs": "6.11.2", "supertest": "6.3.3", @@ -1900,11 +1899,11 @@ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" }, "node_modules/axios": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.0.tgz", - "integrity": "sha512-EZ1DYihju9pwVB+jg67ogm+Tmqc6JmhamRN6I4Zt8DfZu5lbcQGw3ozH9lFejSJgs/ibaef3A9PMXPLeefFGJg==", + "version": "1.7.4", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.4.tgz", + "integrity": "sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw==", "dependencies": { - "follow-redirects": "^1.15.0", + "follow-redirects": "^1.15.6", "form-data": "^4.0.0", "proxy-from-env": "^1.1.0" } diff --git a/backend-app/package.json b/backend-app/package.json index 1e2a91c..5a9da65 100644 --- a/backend-app/package.json +++ b/backend-app/package.json @@ -17,7 +17,7 @@ "author": "NFS-Team", "license": "ISC", "dependencies": { - "axios": "1.6.0", + "axios": "1.7.4", "bcrypt": "5.1.1", "chai": "4.3.10", "compression": "1.7.4",