Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/actions/rego-lint/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ runs:
if [ -z "$FILES" ]; then
echo "has_files=false" >> "$GITHUB_OUTPUT"
else
DIRS=$(printf '%s\n' "$FILES" | while IFS= read -r f; do dirname "$f"; done | sort -u | tr '\n' ' ')
DIRS=$(printf '%s\n' "$FILES" | while IFS= read -r f; do dirname "$f"; done | sort -u | tr '\n' ' ' | sed 's/ *$//')
echo "has_files=true" >> "$GITHUB_OUTPUT"
echo "dirs=$DIRS" >> "$GITHUB_OUTPUT"
fi

- name: Lint changed Rego files
if: steps.changed.outputs.has_files == 'true'
shell: bash
run: regal lint "${{ steps.changed.outputs.dirs }}"
run: regal lint ${{ steps.changed.outputs.dirs }}
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
2 changes: 1 addition & 1 deletion dev/store-ops/pos/authorization.rego
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# METADATA
# title: POS Transaction Authorization
# title: POS Authorization
# description: Controls who can perform point-of-sale operations including sales, returns, voids, and manager overrides
# related_resources:
# - ref: https://wiki.acmecorp.internal/retail-ops/pos-security
Expand Down
Loading