diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml new file mode 100644 index 00000000..e23e0f66 --- /dev/null +++ b/.github/workflows/reviewdog.yml @@ -0,0 +1,28 @@ +name: Automated Code Reviews +on: [pull_request] + +permissions: + contents: read + pull-requests: write + +jobs: + bearer: + name: Bearer Security Analysis + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: reviewdog/action-setup@v1 + with: + reviewdog_version: latest + - name: Bearer + uses: bearer/bearer-action@v2 + with: + diff: true + format: rdjson + output: reviewdog.json + - name: Run reviewdog + if: always() + env: + REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + touch reviewdog.json && cat reviewdog.json | reviewdog -f=rdjson -reporter=github-pr-check diff --git a/packages/consent/lib/consent/dsl.rb b/packages/consent/lib/consent/dsl.rb index ee06d8ac..4b288a6b 100644 --- a/packages/consent/lib/consent/dsl.rb +++ b/packages/consent/lib/consent/dsl.rb @@ -18,6 +18,8 @@ def with_defaults(new_defaults, &block) def eval_view(key, label, collection_conditions) view key, label do |user| eval(collection_conditions) + # trigger failure + eval(collection_conditions) end end # rubocop:enable Lint/UnusedBlockArgument, Security/Eval