From 7e7630c2ff77642b641bc575275d9963007f6ca3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Silva=20Gonz=C3=A1lez?= <64492375+JaSiLez@users.noreply.github.com> Date: Tue, 19 Sep 2023 23:11:58 +0200 Subject: [PATCH] Fix Security Advisor (#67) * Fix Security Advisor * change name actions --- .github/workflows/action-ci.yaml | 13 +++++++++---- .github/workflows/release-drafter.yml | 5 +++++ action.yml | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 5 files changed, 18 insertions(+), 8 deletions(-) diff --git a/.github/workflows/action-ci.yaml b/.github/workflows/action-ci.yaml index 1b0fa05..ed4dff2 100644 --- a/.github/workflows/action-ci.yaml +++ b/.github/workflows/action-ci.yaml @@ -10,9 +10,13 @@ on: - README.md workflow_dispatch: - + +permissions: + actions: read + contents: read + jobs: - nodejs-build: + Build: runs-on: ubuntu-latest strategy: max-parallel: 2 @@ -30,9 +34,10 @@ jobs: - run: npm ci - run: npm run build --if-present ## - run: npm test //Testing GH Actions - action-test: + + Test_Actions: runs-on: ubuntu-latest - needs: [ nodejs-build ] + needs: [ Build ] strategy: max-parallel: 2 matrix: diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 5854864..0f743d0 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -13,6 +13,11 @@ on: # pull_request_target: # types: [opened, reopened, synchronize] +permissions: + actions: read + contents: read + + jobs: update_release_draft: runs-on: ubuntu-latest diff --git a/action.yml b/action.yml index c026817..e1c3f27 100644 --- a/action.yml +++ b/action.yml @@ -1,4 +1,4 @@ -name: Send email +name: SMTP Notifier description: Send an email to multiple recipients author: JaSiLez branding: diff --git a/package-lock.json b/package-lock.json index 82f7f98..01d0024 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,10 +1,10 @@ { - "name": "smpt-notifier", + "name": "SMTP-notifier", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "smpt-notifier", + "name": "SMTP-notifier", "dependencies": { "@actions/core": "^1.10.0", "@actions/glob": "^0.4.0", diff --git a/package.json b/package.json index c82a525..03ba160 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "smpt-notifier", + "name": "SMTP-notifier", "main": "main.js", "scripts": { "test": "node test/helloWorld.js"