Skip to content

Commit

Permalink
Add conftest GitHub Actions workflow
Browse files Browse the repository at this point in the history
Validate GitHub Actions workflows via personal conftest rules.
  • Loading branch information
iamleot committed Mar 13, 2023
1 parent c641dd5 commit d9a1c4b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/conftest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Validate via personal conftest policies

'on':
push:
branches:
- main
pull_request:

jobs:
conftest:
name: Validate via personal conftest policies
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Validate via personal conftest policies
uses: docker://openpolicyagent/conftest:latest
env:
CONFTEST_POLICIES: git::https://github.com/iamleot/conftest-policies.git//policy/github
with:
args: test --all-namespaces --update "${{ env.CONFTEST_POLICIES }}" .github/workflows

0 comments on commit d9a1c4b

Please sign in to comment.