Skip to content

Commit

Permalink
Add top level read-all token permission to workflows (#1354)
Browse files Browse the repository at this point in the history
* Add top level read-all token permission to workflows

* Restrict perms for tests to contents: read

* Remove derelict scripts

* Add badges

* Final badge links
  • Loading branch information
sgillies authored Mar 11, 2024
1 parent 3d48234 commit 9493e4f
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 93 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/rstcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
- "docs/**"
- "ci/rstcheck/*"

permissions:
contents: read

jobs:
rstcheck:
name: rstcheck
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test_gdal_latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
test_gdal_latest:
name: GDAL Latest
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:
- 'setup.cfg'
- 'MANIFEST.in'
- 'pyproject.toml'
- 'scripts/**'
- 'fiona/**'
- 'tests/**'
pull_request:
Expand All @@ -22,12 +21,14 @@ on:
- 'setup.cfg'
- 'MANIFEST.in'
- 'pyproject.toml'
- 'scripts/**'
- 'fiona/**'
- 'tests/**'
schedule:
- cron: '0 0 * * 0'

permissions:
contents: read

jobs:
docker_tests:
runs-on: ubuntu-latest
Expand Down
8 changes: 6 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
Fiona
=====

.. image:: https://github.com/Toblerity/Fiona/workflows/Tests/badge.svg?branch=main
:target: https://github.com/Toblerity/Fiona/actions?query=branch%3Amain
.. image:: https://github.com/Toblerity/Fiona/actions/workflows/tests.yml/badge.svg
:target: https://github.com/Toblerity/Fiona/actions/workflows/tests.yml
.. image:: https://github.com/Toblerity/Fiona/actions/workflows/test_gdal_latest.yml/badge.svg
:target: https://github.com/Toblerity/Fiona/actions/workflows/test_gdal_latest.yml
.. image:: https://img.shields.io/pypi/v/fiona
:target: https://pypi.org/project/fiona/

Fiona streams simple feature data to and from GIS formats like GeoPackage and
Shapefile.
Expand Down
70 changes: 0 additions & 70 deletions scripts/dumpgj

This file was deleted.

19 changes: 0 additions & 19 deletions scripts/fiona.insp

This file was deleted.

0 comments on commit 9493e4f

Please sign in to comment.