From 3abbae7717419b6418a24446fe6de4febd80bcd1 Mon Sep 17 00:00:00 2001 From: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com> Date: Wed, 9 Nov 2022 17:52:20 +0530 Subject: [PATCH] =?UTF-8?q?chore:=20minor=20housekeeping=20=F0=9F=A7=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com> --- .github/workflows/codeql.yml | 43 ++++++++++++++++++++++++++++ .github/workflows/demo.yml | 2 +- .github/workflows/lint-pr.yml | 28 ++++++++++++++++++ .github/workflows/shipjs-trigger.yml | 2 ++ README.md | 7 ++--- lgtm.yml | 11 ------- 6 files changed, 77 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/codeql.yml create mode 100644 .github/workflows/lint-pr.yml delete mode 100644 lgtm.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 00000000..e4d98dd0 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,43 @@ +name: 'CodeQL' + +on: + push: + branches: + - main + pull_request: + branches: + - main + schedule: + - cron: '45 23 * * 2' + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [javascript] + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + queries: +security-and-quality + + - name: Autobuild + uses: github/codeql-action/autobuild@v2 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 + with: + category: '/language:${{ matrix.language }}' diff --git a/.github/workflows/demo.yml b/.github/workflows/demo.yml index 8fdf3bdb..5511015b 100644 --- a/.github/workflows/demo.yml +++ b/.github/workflows/demo.yml @@ -30,7 +30,7 @@ jobs: - name: Run build 🏁 run: npm run build - env: + env: VITE_WEATHER_API_KEY: ${{ secrets.WEATHER_API_KEY }} - name: Deploy to GitHub Pages 🚀 diff --git a/.github/workflows/lint-pr.yml b/.github/workflows/lint-pr.yml new file mode 100644 index 00000000..aa2f1bb6 --- /dev/null +++ b/.github/workflows/lint-pr.yml @@ -0,0 +1,28 @@ +name: 'Lint PR' + +on: + pull_request_target: + types: + - opened + - edited + - synchronize + +jobs: + validate-pr-title: + name: Validate PR title + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v5.0.2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + check-sign-off: + if: startsWith(github.head_ref, 'releases/v') == false + name: Write comment if unsigned commits found + env: + FORCE_COLOR: 1 + runs-on: ubuntu-latest + steps: + - uses: live627/check-pr-signoff-action@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/shipjs-trigger.yml b/.github/workflows/shipjs-trigger.yml index 4196e018..4c3c7915 100644 --- a/.github/workflows/shipjs-trigger.yml +++ b/.github/workflows/shipjs-trigger.yml @@ -1,8 +1,10 @@ name: Ship js trigger + on: pull_request: types: - closed + jobs: build: name: Release diff --git a/README.md b/README.md index 04a9b0bb..07e22574 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ # Mapbox :: Interpolated Heatmap(s) -[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/vinayakkulkarni/mapbox-gl-interpolate-heatmap/ci?logo=github-actions)](https://github.com/vinayakkulkarni/mapbox-gl-interpolate-heatmap/actions/workflows/ci.yml) -[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/vinayakkulkarni/mapbox-gl-interpolate-heatmap/Ship%20js%20trigger?label=⛴%20Ship.js%20trigger)](https://github.com/vinayakkulkarni/mapbox-gl-interpolate-heatmap/actions/workflows/shipjs-trigger.yml) +[![CI Workflow Status](https://img.shields.io/github/workflow/status/vinayakkulkarni/mapbox-gl-interpolate-heatmap/ci?logo=github-actions)](https://github.com/vinayakkulkarni/mapbox-gl-interpolate-heatmap/actions/workflows/ci.yml) +[![CodeQL Workflow Status](https://img.shields.io/github/workflow/status/vinayakkulkarni/mapbox-gl-interpolate-heatmap/codeql?logo=github-actions)](https://github.com/vinayakkulkarni/mapbox-gl-interpolate-heatmap/actions/workflows/codeql.yml) +[![Ship.js Workflow Status](https://img.shields.io/github/workflow/status/vinayakkulkarni/mapbox-gl-interpolate-heatmap/Ship%20js%20trigger?label=⛴%20Ship.js%20trigger)](https://github.com/vinayakkulkarni/mapbox-gl-interpolate-heatmap/actions/workflows/shipjs-trigger.yml) [![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/vinayakkulkarni/mapbox-gl-interpolate-heatmap?sort=semver&logo=github)](https://github.com/vinayakkulkarni/mapbox-gl-interpolate-heatmap/releases) [![npm](https://img.shields.io/npm/v/mapbox-gl-interpolate-heatmap?logo=npm)](https://www.npmjs.com/package/mapbox-gl-interpolate-heatmap) [![npm](https://img.shields.io/npm/dm/mapbox-gl-interpolate-heatmap?logo=npm)](http://npm-stat.com/charts.html?package=mapbox-gl-interpolate-heatmap) @@ -9,8 +10,6 @@ [![npm type definitions](https://img.shields.io/npm/types/mapbox-gl-interpolate-heatmap?logo=TypeScript)](https://github.com/vinayakkulkarni/mapbox-gl-interpolate-heatmap/blob/master/package.json) [![DeepScan grade](https://deepscan.io/api/teams/9055/projects/19648/branches/513258/badge/grade.svg)](https://deepscan.io/dashboard#view=project&tid=9055&pid=19648&bid=513258) [![Snyk Vulnerabilities for GitHub Repo](https://img.shields.io/snyk/vulnerabilities/github/vinayakkulkarni/mapbox-gl-interpolate-heatmap)](https://snyk.io/test/github/vinayakkulkarni/mapbox-gl-interpolate-heatmap) -[![LGTM Alerts](https://img.shields.io/lgtm/alerts/github/vinayakkulkarni/mapbox-gl-interpolate-heatmap?logo=lgtm)](https://lgtm.com/projects/g/vinayakkulkarni/mapbox-gl-interpolate-heatmap/alerts/) -[![LGTM Grade](https://img.shields.io/lgtm/grade/javascript/github/vinayakkulkarni/mapbox-gl-interpolate-heatmap?logo=lgtm)](https://lgtm.com/projects/g/vinayakkulkarni/mapbox-gl-interpolate-heatmap/context:javascript) [![GitHub contributors](https://img.shields.io/github/contributors/vinayakkulkarni/mapbox-gl-interpolate-heatmap)](https://github.com/vinayakkulkarni/mapbox-gl-interpolate-heatmap/graphs/contributors) [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fvinayakkulkarni%2Fmapbox-gl-interpolate-heatmap.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fvinayakkulkarni%2Fmapbox-gl-interpolate-heatmap?ref=badge_shield) diff --git a/lgtm.yml b/lgtm.yml deleted file mode 100644 index 89fff145..00000000 --- a/lgtm.yml +++ /dev/null @@ -1,11 +0,0 @@ -# LGTM Settings (https://lgtm.com/) -# For reference, see https://lgtm.com/help/lgtm/lgtm.yml-configuration-file -# or template at https://lgtm.com/static/downloads/lgtm.template.yml - -extraction: - javascript: - index: - include: - - src - - tsconfig.json - typescript: full