From 316414877b2739efbc816610aed4deb79e424f48 Mon Sep 17 00:00:00 2001 From: Matthew Carroll <28577806+MJC598@users.noreply.github.com> Date: Wed, 22 Apr 2026 13:09:54 -0400 Subject: [PATCH 1/2] Update and rename format-suggest.yml to format-check.yml Signed-off-by: Matthew Carroll <28577806+MJC598@users.noreply.github.com> --- .github/workflows/format-check.yml | 23 ++++++++++++++ .github/workflows/format-suggest.yml | 46 ---------------------------- 2 files changed, 23 insertions(+), 46 deletions(-) create mode 100644 .github/workflows/format-check.yml delete mode 100644 .github/workflows/format-suggest.yml diff --git a/.github/workflows/format-check.yml b/.github/workflows/format-check.yml new file mode 100644 index 0000000..3a525b5 --- /dev/null +++ b/.github/workflows/format-check.yml @@ -0,0 +1,23 @@ +# Workflow derived from https://github.com/posit-dev/setup-air/tree/main/examples + +on: + push: + branches: [ main, master ] + pull_request: + +name: format-check.yml + +permissions: read-all + +jobs: + format-check: + name: format-check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install + uses: posit-dev/setup-air@v1 + + - name: Check + run: air format . --check diff --git a/.github/workflows/format-suggest.yml b/.github/workflows/format-suggest.yml deleted file mode 100644 index bedaaae..0000000 --- a/.github/workflows/format-suggest.yml +++ /dev/null @@ -1,46 +0,0 @@ -# Workflow derived from https://github.com/posit-dev/setup-air/tree/main/examples - -on: - # Using `pull_request_target` over `pull_request` for elevated `GITHUB_TOKEN` - # privileges, otherwise we can't set `pull-requests: write` when the pull - # request comes from a fork, which is our main use case (external contributors). - # - # `pull_request_target` runs in the context of the target branch (`main`, usually), - # rather than in the context of the pull request like `pull_request` does. Due - # to this, we must explicitly checkout `ref: ${{ github.event.pull_request.head.sha }}`. - # This is typically frowned upon by GitHub, as it exposes you to potentially running - # untrusted code in a context where you have elevated privileges, but they explicitly - # call out the use case of reformatting and committing back / commenting on the PR - # as a situation that should be safe (because we aren't actually running the untrusted - # code, we are just treating it as passive data). - # https://securitylab.github.com/resources/github-actions-preventing-pwn-requests/ - pull_request_target: - -name: format-suggest.yml - -jobs: - format-suggest: - name: format-suggest - runs-on: ubuntu-latest - - permissions: - # Required to push suggestion comments to the PR - pull-requests: write - - steps: - - uses: actions/checkout@v4 - with: - ref: ${{ github.event.pull_request.head.sha }} - - - name: Install - uses: posit-dev/setup-air@v1 - - - name: Format - run: air format . - - - name: Suggest - uses: reviewdog/action-suggester@v1 - with: - level: error - fail_level: error - tool_name: air From 7fa669b683f6b225977123822d0e68e7aba985e1 Mon Sep 17 00:00:00 2001 From: Matthew Carroll <28577806+MJC598@users.noreply.github.com> Date: Wed, 22 Apr 2026 13:13:06 -0400 Subject: [PATCH 2/2] Update lint-project.yml Signed-off-by: Matthew Carroll <28577806+MJC598@users.noreply.github.com> --- .github/workflows/lint-project.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/lint-project.yml b/.github/workflows/lint-project.yml index 04bfffa..15eec04 100644 --- a/.github/workflows/lint-project.yml +++ b/.github/workflows/lint-project.yml @@ -21,6 +21,8 @@ jobs: with: use-public-rspm: true + - uses: r-lib/actions/setup-renv@v2 + - name: Install lintr run: install.packages("lintr") shell: Rscript {0}