Skip to content

Commit

Permalink
Revert "Discontinued Policy Markdown Creation (#1089)"
Browse files Browse the repository at this point in the history
This reverts commit 0f353ee.
  • Loading branch information
ahuynhMITRE committed May 6, 2024
1 parent 0f353ee commit 3bc54b2
Show file tree
Hide file tree
Showing 66 changed files with 11,807 additions and 8,824 deletions.
Empty file.
99 changes: 0 additions & 99 deletions .github/workflows/publish_private_package.yaml

This file was deleted.

106 changes: 0 additions & 106 deletions .github/workflows/publish_public_package.yaml

This file was deleted.

111 changes: 0 additions & 111 deletions .github/workflows/run_module_version_bump.yml

This file was deleted.

60 changes: 57 additions & 3 deletions .github/workflows/run_pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,77 @@ on:
push:
pull_request:
workflow_dispatch:
inputs:
# When set to true, it will run every step in the pipeline, regardless of
# what files have changed.
doEverything:
description: "Run every workflow in the pipeline."
required: false
type: boolean
default: true

jobs:
test-files:
name: Test for Changes
runs-on: ubuntu-latest
# This condition prevents duplicate runs.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Check for Changes
uses: dorny/paths-filter@v3
id: file-changes
with:
base: ${{ github.ref }}
filters: |
yaml-files:
- added|modified: "**.yml"
- added|modified: "**.yaml"
powershell-files:
- added|modified: "**.ps1"
- added|modified: "**.psm1"
- added|modified: "**.psd1"
- added|modified: "**.pssc"
- added|modified: "**.psrc"
- added|modified: "**.ps1xml"
- added|modified: "**.cdxml"
markdown-files:
- added|modified: "PowerShell/ScubaGear/baselines/*.md"
rego-files:
- added|modified: "**.rego"
outputs:
yaml-changes: ${{ steps.file-changes.outputs.yaml-files || inputs.doEverything }}
powershell-changes: ${{ steps.file-changes.outputs.powershell-files || inputs.doEverything }}
markdown-changes: ${{ steps.file-changes.outputs.markdown-files || inputs.doEverything }}
rego-changes: ${{ steps.file-changes.outputs.rego-files || inputs.doEverything }}
lint-yaml:
name: Lint
needs:
- test-files
if: needs.test-files.outputs.yaml-changes == 'true'
uses: ./.github/workflows/lint_yaml.yaml
lint-powershell:
name: Lint
needs:
- test-files
if: needs.test-files.outputs.powershell-changes == 'true'
uses: ./.github/workflows/lint_powershell.yaml
scan-secret:
name: Security
uses: ./.github/workflows/run_secret_scan.yaml
syntax:
name: Syntax
needs:
- test-files
if: needs.test-files.outputs.markdown-changes == 'true'
uses: ./.github/workflows/syntax_check_markdown.yaml
unit-powershell:
name: Unit
needs:
- test-files
if: needs.test-files.outputs.powershell-changes == 'true'
uses: ./.github/workflows/unit_test_powershell.yaml
unit-opa:
name: Unit
needs:
- test-files
if: needs.test-files.outputs.rego-changes == 'true'
uses: ./.github/workflows/unit_test_opa.yaml
Loading

0 comments on commit 3bc54b2

Please sign in to comment.