diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0e6ca93..aa0aabc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,11 +6,28 @@ on: jobs: build-and-test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - run: npm ci - - name: Build the library - run: npm run build - - name: Run unit tests - run: npm run test \ No newline at end of file + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Install git-secrets + run: | + git clone https://github.com/awslabs/git-secrets.git + cd git-secrets + sudo make install + + - name: Configure git-secrets + run: | + git secrets --register-aws + + - name: Run git-secrets scan + run: | + git secrets --scan-history + + - run: npm ci + - name: Build the library + run: npm run build + - name: Run unit tests + run: npm run test \ No newline at end of file diff --git a/README.md b/README.md index 3a0ddfc..d98ecc2 100644 --- a/README.md +++ b/README.md @@ -19,13 +19,13 @@ npm i --save @cedar-policy/cedar-authorization ### Usage -#### Authorization Engine +#### Authorization Enginee This package provides an interface for an "Authorization Engine" which takes a Cedar request and entities, and returns an authorization result. [TODO: link to example] -#### CLI Tools +#### CLI Toolss Authorization Engine: Implement authorization checks using Cedar policies