diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index 82eb45d..254b059 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -1,5 +1,5 @@ --- -name: Lint Code Base +name: Lint Code Base (black) defaults: run: @@ -15,9 +15,15 @@ on: jobs: build: - name: Lint Code Base + name: Lint Code Base (black) runs-on: ubuntu-latest + permissions: + contents: read + packages: read + # To report GitHub Actions status checks + statuses: write + steps: - name: Checkout Code uses: actions/checkout@v4 @@ -33,7 +39,7 @@ jobs: cp pyproject.toml .github/linters - name: Black - uses: github/super-linter/slim@v5.0.0 + uses: super-linter/super-linter/slim@v7.2.1 if: always() env: # run linter on everything to catch preexisting problems diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index b02a37b..4d36bea 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -1,5 +1,5 @@ --- -name: Lint Code Base +name: Lint Code Base (pylint) defaults: run: @@ -15,12 +15,22 @@ on: jobs: build: - name: Lint Code Base + name: Lint Code Base (pylint) runs-on: ubuntu-latest + permissions: + contents: read + packages: read + # To report GitHub Actions status checks + statuses: write + steps: - name: Checkout Code uses: actions/checkout@v4 + with: + # super-linter needs the full git history to get the + # list of files that changed across commits + fetch-depth: 0 - name: Set up Python 3.8 uses: actions/setup-python@v5 @@ -33,7 +43,7 @@ jobs: cp pyproject.toml .github/linters - name: Pylint - uses: github/super-linter/slim@v5.0.0 + uses: super-linter/super-linter/slim@v7.2.1 if: always() env: # run linter on everything to catch preexisting problems