Organization Configuration #1063
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |