diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml index 2a71419d5..b1298137c 100644 --- a/.github/workflows/reviewdog.yml +++ b/.github/workflows/reviewdog.yml @@ -1,20 +1,23 @@ name: reviewdog -# read-only repo token -# no access to secrets on: pull_request: - paths-ignore: - - '!.github/**' jobs: eslint: name: runner / eslint runs-on: ubuntu-latest + + permissions: + checks: write + contents: read + pull-requests: read + steps: - uses: actions/checkout@v2 - uses: reviewdog/action-eslint@v1 with: + github_token: ${{ secrets.GITHUB_TOKEN }} reporter: github-pr-review level: error fail_on_error: true diff --git a/plugins/basemap-openstreetmap.js b/plugins/basemap-openstreetmap.js index f60a4a536..883629bbb 100644 --- a/plugins/basemap-openstreetmap.js +++ b/plugins/basemap-openstreetmap.js @@ -19,7 +19,7 @@ var changelog = [ { version: '0.1.3', changes: ['Update OSM tile provider', 'Add CyclOSM tiles', 'Expose config'], - }, + } ]; // https://wiki.openstreetmap.org/wiki/Raster_tile_providers @@ -53,7 +53,7 @@ function setup() { // OpenStreetMap tiles - we shouldn't use these by default - https://wiki.openstreetmap.org/wiki/Tile_usage_policy // "Heavy use (e.g. distributing an app that uses tiles from openstreetmap.org) is forbidden without prior permission from the System Administrators" - for (var entry of mapOpenStreetMap.LAYERS) { + for ( var entry of mapOpenStreetMap.LAYERS ) { var layer = new L.TileLayer(entry.url, entry.options); layerChooser.addBaseLayer(layer, entry.name); }