From 53f6fe95ed856f45a802f764db4fdf6824bc2d63 Mon Sep 17 00:00:00 2001 From: Nick Alteen Date: Mon, 27 Nov 2023 23:47:29 -0500 Subject: [PATCH] Remove extra permissions --- .github/workflows/ci.yml | 5 +++-- .github/workflows/linter.yml | 17 +++++++---------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8bd9d43..235502b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,12 +2,13 @@ name: Continuous Integration on: pull_request: - branches: - - main push: branches: - main +permissions: + contents: read + jobs: test-docker: name: Docker Tests diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 6a46ad7..c8e41dd 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -1,31 +1,28 @@ -name: Lint Code Base +name: Lint Codebase on: pull_request: - branches: - - main push: branches: - main +permissions: + contents: read + jobs: lint: - name: Lint Code Base + name: Lint Codebase runs-on: ubuntu-latest - permissions: - contents: read - packages: read - statuses: write - steps: - name: Checkout id: checkout uses: actions/checkout@v4 - - name: Lint Code Base + - name: Lint Codebase id: super-linter uses: super-linter/super-linter/slim@v5 env: DEFAULT_BRANCH: main GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + VALIDATE_ALL_CODEBASE: true