From a4b46c3520f3551970eb5b475342478e85cbad7a Mon Sep 17 00:00:00 2001 From: Daniel <790119+DanTheMan827@users.noreply.github.com> Date: Mon, 16 Mar 2026 09:34:42 -0500 Subject: [PATCH] fix(lint): update permissions for workflow actions - Changed permissions from 'workflows: write' to 'actions: write' --- .github/workflows/lint.yml | 90 +++++++++++++++++++------------------- 1 file changed, 45 insertions(+), 45 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 17177ef..ce3c38f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,61 +1,61 @@ name: Lint Codebase on: - push: - branches: [main] - pull_request: - branches: [main] + push: + branches: [main] + pull_request: + branches: [main] permissions: - contents: write - workflows: write + contents: write + actions: write jobs: - lint: - runs-on: ubuntu-latest + lint: + runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - fetch-depth: 1 + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 1 - - name: Setup Bun - uses: oven-sh/setup-bun@v1 - with: - bun-version: latest + - name: Setup Bun + uses: oven-sh/setup-bun@v1 + with: + bun-version: latest - - name: Cache dependencies - uses: actions/cache@v3 - with: - path: | - ./bun_modules - ./node_modules - ./bun.lock - key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }} + - name: Cache dependencies + uses: actions/cache@v3 + with: + path: | + ./bun_modules + ./node_modules + ./bun.lock + key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }} - - name: Install dependencies - run: bun install --frozen-lockfile + - name: Install dependencies + run: bun install --frozen-lockfile - - name: Run JS Lint - run: bun run lint:js -- --fix - continue-on-error: true + - name: Run JS Lint + run: bun run lint:js -- --fix + continue-on-error: true - - name: Run CSS Lint - run: bun run lint:css -- --fix - continue-on-error: true + - name: Run CSS Lint + run: bun run lint:css -- --fix + continue-on-error: true - - name: Format with Prettier - run: bun run format - continue-on-error: true + - name: Format with Prettier + run: bun run format + continue-on-error: true - - name: Commit and Push lint fixes - uses: stefanzweifel/git-auto-commit-action@v5 - with: - commit_message: 'style: auto-fix linting issues' - commit_user_name: 'github-actions[bot]' - commit_user_email: 'github-actions[bot]@users.noreply.github.com' - only_if_changed: true + - name: Commit and Push lint fixes + uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: 'style: auto-fix linting issues' + commit_user_name: 'github-actions[bot]' + commit_user_email: 'github-actions[bot]@users.noreply.github.com' + only_if_changed: true - - name: Run HTML Lint - run: bun run lint:html + - name: Run HTML Lint + run: bun run lint:html