Skip to content

Organization Configuration #1064

Organization Configuration

Organization Configuration #1064

Workflow file for this run

name: Organization Configuration
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
paths:
- 'tools/**'
- 'config/**'
schedule:
- cron: "0 0 * * *"
env:
PERIBOLOS_ARGS: "--fix-org --fix-org-members --fix-repos --fix-team-members --fix-teams --fix-team-repos --maximum-removal-delta=1 --github-allowed-burst=300 --github-hourly-tokens=1000 --allow-repo-archival"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Generating Peribolos configuration
uses: docker://ghcr.io/open-feature/community-tooling:v0
- name: Preparing credentials
run: echo ${{ secrets.PERIBOLOS_GH_TOKEN }} >> github-token # a secret with the user token to be used for execution
- name: Run Peribolos Configuration Verification
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
uses: docker://ghcr.io/dynatrace-innovationlab/peribolos:v0
with:
args: ${{ env.PERIBOLOS_ARGS }} --github-token-path github-token --config-path config/peribolos.yaml
- name: Apply Peribolos Configuration
if: github.event_name != 'pull_request'
uses: docker://ghcr.io/dynatrace-innovationlab/peribolos:v0
with:
args: ${{ env.PERIBOLOS_ARGS }} --github-token-path github-token --config-path config/peribolos.yaml --confirm