diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml new file mode 100644 index 0000000..2f1434d --- /dev/null +++ b/.github/dependabot.yaml @@ -0,0 +1,16 @@ +--- +updates: + - directory: "/" + package-ecosystem: "github-actions" + schedule: + interval: "daily" + - directory: "/cloudrun-malware-scanner" + package-ecosystem: "npm" + schedule: + interval: "daily" + - directory: "/cloudrun-malware-scanner" + package-ecosystem: "docker" + schedule: + interval: "daily" +version: 2 +... diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 3c90e26..2ef706b 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -13,10 +13,7 @@ name: "CodeQL" on: push: - branches: [ "main" ] pull_request: - # The branches below must be a subset of the branches above - branches: [ "main" ] schedule: - cron: '27 22 * * 5' @@ -38,7 +35,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml new file mode 100644 index 0000000..e213397 --- /dev/null +++ b/.github/workflows/eslint.yml @@ -0,0 +1,36 @@ +name: "ESLint and NPM audit" + +on: + push: + pull_request: + +jobs: + analyze: + name: "Eslint-analyze" + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: 21 + check-latest: true + + # Install eslint + - name: Install eslint + working-directory: cloudrun-malware-scanner/ + run: npm install + + - name: NPM Audit + working-directory: cloudrun-malware-scanner/ + run: npm audit + + - name: ESlint + working-directory: cloudrun-malware-scanner/ + run: npm run eslint diff --git a/cloudrun-malware-scanner/.eslintrc.js b/cloudrun-malware-scanner/.eslintrc.js index 5ee7741..3e40b90 100644 --- a/cloudrun-malware-scanner/.eslintrc.js +++ b/cloudrun-malware-scanner/.eslintrc.js @@ -24,7 +24,7 @@ module.exports = { "SharedArrayBuffer": "readonly" }, "parserOptions": { - "ecmaVersion": 2018 + "ecmaVersion": 2020 }, "rules": { } diff --git a/cloudrun-malware-scanner/package-lock.json b/cloudrun-malware-scanner/package-lock.json index 7a6e723..efffd82 100644 --- a/cloudrun-malware-scanner/package-lock.json +++ b/cloudrun-malware-scanner/package-lock.json @@ -6,7 +6,7 @@ "packages": { "": { "name": "gcs-malware-scanner", - "version": "2.1.0", + "version": "2.3.0", "license": "Apache-2.0", "dependencies": { "@google-cloud/common": "^4.0.3",