Skip to content

Commit

Permalink
Update maven-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
saurav631 authored Sep 2, 2024
1 parent 941158f commit a360b88
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/maven-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,22 @@ jobs:
RESULT=$(date +"%d.%m.%Y").$BRANCH_NAME.$GITHUB_RUN_NUMBER
echo $RESULT
./mvnw -B package > app.jar
- name: Rego Policy
run: |
echo "package signature

allow[msg] {
input.Data.author_name != "saurav631"
msg := sprintf("Invalid Git Author: %v", [input.Data])
}

allow[msg] {
input.Data.branch != "main"
msg := sprintf("Invalid branch name: %v", [input.Data])
}" > policy.rego

cat policy.rego

# - uses: actions/checkout@v4
# with:
Expand Down

0 comments on commit a360b88

Please sign in to comment.