Skip to content

Commit

Permalink
Merge branch 'main' into 1403-write-unit-tests-for-invoke-pssa
Browse files Browse the repository at this point in the history
  • Loading branch information
james-garriss authored Dec 9, 2024
2 parents 3cec1f0 + e1f201d commit c908467
Show file tree
Hide file tree
Showing 30 changed files with 740 additions and 214 deletions.
98 changes: 98 additions & 0 deletions .github/workflows/convert_baselines.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# Purpose: Converts the baseline Markdown files into HTML and text so that they can be ingested into Drupal.

name: Convert Baseline to Text and HTML

on:
workflow_dispatch:
push:
paths:
- ".github/workflows/convert_baselines.yaml"

permissions: read-all

jobs:
convert:
name: Convert
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Convert AAD to Text
uses: docker://pandoc/core:3.5
with:
args: >-
--standalone
-f markdown
-t plain
PowerShell/ScubaGear/baselines/aad.md
--output=baselines/aad.txt
- name: Convert Defender to Text
uses: docker://pandoc/core:3.5
with:
args: >-
--standalone
-f markdown
-t plain
PowerShell/ScubaGear/baselines/defender.md
--output=baselines/defender.txt
- name: Convert Exchange to Text
uses: docker://pandoc/core:3.5
with:
args: >-
--standalone
-f markdown
-t plain
PowerShell/ScubaGear/baselines/exo.md
--output=baselines/exo.txt
- name: Convert Power BI to Text
uses: docker://pandoc/core:3.5
with:
args: >-
--standalone
-f markdown
-t plain
PowerShell/ScubaGear/baselines/powerbi.md
--output=baselines/powerbi.txt
- name: Convert Power Platform to Text
uses: docker://pandoc/core:3.5
with:
args: >-
--standalone
-f markdown
-t plain
PowerShell/ScubaGear/baselines/powerplatform.md
--output=baselines/powerflatform.txt
- name: Convert Sharepoint to Text
uses: docker://pandoc/core:3.5
with:
args: >-
--standalone
-f markdown
-t plain
PowerShell/ScubaGear/baselines/sharepoint.md
--output=baselines/sharepoint.txt
- name: Convert Teams to Text
uses: docker://pandoc/core:3.5
with:
args: >-
--standalone
-f markdown
-t plain
PowerShell/ScubaGear/baselines/teams.md
--output=baselines/teams.txt
- name: Install HTML converter
run: npm i markdown-to-html-cli -g
- name: Convert to HTML
run: |
markdown-to-html --source PowerShell/ScubaGear/baselines/aad.md --output baselines/aad.html
markdown-to-html --source PowerShell/ScubaGear/baselines/defender.md --output baselines/defender.html
markdown-to-html --source PowerShell/ScubaGear/baselines/exo.md --output baselines/exo.html
markdown-to-html --source PowerShell/ScubaGear/baselines/powerbi.md --output baselines/powerbi.html
markdown-to-html --source PowerShell/ScubaGear/baselines/powerplatform.md --output baselines/powerplatform.html
markdown-to-html --source PowerShell/ScubaGear/baselines/sharepoint.md --output baselines/sharepoint.html
markdown-to-html --source PowerShell/ScubaGear/baselines/teams.md --output baselines/teams.html
- name: Upload
uses: actions/upload-artifact@v4
with:
name: output
path: baselines
6 changes: 3 additions & 3 deletions .github/workflows/test_production_function.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
name: Functional Tests

on:
# Run this workflow at 12:15 am
# on every Sun to Thr (b/c GMT -5)
# Run this workflow at 12:15 (or 1:15) am
# on every Mon to Fri (b/c GMT -5 or -4)
schedule:
- cron: "15 4 * * 0-4"
- cron: "15 6 * * 1-5" # in GMT
workflow_dispatch:
inputs:
# checkov:skip=CKV_GHA_7:Manual inputs are desired.
Expand Down
Loading

0 comments on commit c908467

Please sign in to comment.