Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
10 changes: 6 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ updates:
directory: "/"
schedule:
interval: "weekly"
cooldown:
default-days: 3
reviewers:
- "advanced-security/oss-maintainers"
target-branch: "main"
Expand All @@ -18,15 +20,15 @@ updates:
labels:
- "Dependencies"
groups:
production-dependencies:
dependency-type: "production"
development-dependencies:
dependency-type: "development"
actions:
patterns: ["*"]

- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
cooldown:
default-days: 3
reviewers:
- "advanced-security/oss-maintainers"
target-branch: "main"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- name: Install Deps
run: |
python3 -m pip install pipenv && python3 -m pipenv install --dev --system
python3 -m pip install -r requirements-docs.txt --require-hashes
Comment thread
felickz marked this conversation as resolved.

- name: Build docs
run: |
Expand Down
20 changes: 13 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:

- name: Install dependencies
run: |
python -m pip install --upgrade pip pipenv
pipenv sync -d
python -m pip install 'pip==26.0.1' 'pipenv==2025.0.4'
pipenv sync --dev

# Unit tests
- name: Run Unit tests
Expand All @@ -44,26 +44,32 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.user.login != 'dependabot[bot]' }}
needs: run
env:
POLICY_AS_CODE_TESTING_TOKEN: ${{ secrets.POLICY_AS_CODE_TESTING_TOKEN }}

steps:
- uses: actions/checkout@v5
- name: Skip e2e when token is unavailable
if: ${{ env.POLICY_AS_CODE_TESTING_TOKEN == '' }}
run: echo "Skipping e2e-tests because POLICY_AS_CODE_TESTING_TOKEN is not configured for this event."
- name: Run action
if: ${{ env.POLICY_AS_CODE_TESTING_TOKEN != '' }}
uses: ./
with:
action: continue
token: "${{ secrets.POLICY_AS_CODE_TESTING_TOKEN }}"
policy: advanced-security/policy-as-code-testing
policy-path: policy.yml
argvs: --display --github-repository advanced-security/policy-as-code-testing --github-ref refs/heads/main
token: "${{ env.POLICY_AS_CODE_TESTING_TOKEN }}"

action-test:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.user.login != 'dependabot[bot]' }}
needs: run
env:
POLICY_AS_CODE_TESTING_TOKEN: ${{ secrets.POLICY_AS_CODE_TESTING_TOKEN }}

steps:
- uses: actions/checkout@v5
- name: Run action
if: ${{ env.POLICY_AS_CODE_TESTING_TOKEN != '' }}
uses: ./
with:
token: "${{ secrets.POLICY_AS_CODE_TESTING_TOKEN }}"
token: "${{ env.POLICY_AS_CODE_TESTING_TOKEN }}"
4 changes: 3 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
import sys
from sphinx.application import Sphinx

sys.path.append(os.path.join(os.getcwd(), ".."))
DOCS_DIR = os.path.abspath(os.path.dirname(__file__))
REPO_ROOT = os.path.abspath(os.path.join(DOCS_DIR, ".."))
sys.path.extend([REPO_ROOT, os.path.join(REPO_ROOT, "vendor")])


# -- Project information -----------------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions requirements-docs.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sphinx
myst-parser
Loading
Loading