Skip to content

Commit

Permalink
Add separate powershell analysis (#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
CSR2017 authored Dec 4, 2024
1 parent df8037d commit 22e3da1
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 20 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/on-config-pullrequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ on:
branches:
- main
paths:
- "**/*config*.ps1"
- "**/*.psm1"
- "src/config/**/*.cs"
- "src/config/**/*.csproj"
- ".github/**/*config*.yml"
Expand All @@ -33,14 +31,6 @@ concurrency:
permissions: read-all

jobs:
run-ps-lint:
name: PowerShell Linter
uses: Ed-Fi-Alliance-OSS/Ed-Fi-Actions/.github/workflows/powershell-analyzer.yml@main
permissions:
security-events: write
actions: read
contents: read

scan-actions-bidi:
name: Scan Actions, scan all files for BIDI Trojan Attacks
uses: Ed-Fi-Alliance-OSS/Ed-Fi-Actions/.github/workflows/repository-scanner.yml@main
Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/on-dms-pullrequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ on:
branches:
- main
paths:
- "**/*dms*.ps1"
- "**/*.psm1"
- "src/dms/**/*.cs"
- "src/dms/**/*.csproj"
- ".github/**/*dms*.yml"
Expand All @@ -33,14 +31,6 @@ concurrency:
permissions: read-all

jobs:
run-ps-lint:
name: PowerShell Linter
uses: Ed-Fi-Alliance-OSS/Ed-Fi-Actions/.github/workflows/powershell-analyzer.yml@main
permissions:
security-events: write
actions: read
contents: read

scan-actions-bidi:
name: Scan Actions, scan all files for BIDI Trojan Attacks
uses: Ed-Fi-Alliance-OSS/Ed-Fi-Actions/.github/workflows/repository-scanner.yml@main
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/powershell-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# SPDX-License-Identifier: Apache-2.0
# Licensed to the Ed-Fi Alliance under one or more agreements.
# The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
# See the LICENSE and NOTICES files in the project root for more information.

name: "PowerShell"

on:
push:
branches: [ "main" ]
paths:
- "**/*.ps1"
- "**/*.psm1"
pull_request:
branches: [ "main" ]
paths:
- "**/*.ps1"
- "**/*.psm1"

permissions: read-all

jobs:
run-ps-lint:
name: PowerShell Linter
uses: Ed-Fi-Alliance-OSS/Ed-Fi-Actions/.github/workflows/powershell-analyzer.yml@main
permissions:
security-events: write
actions: read
contents: read

0 comments on commit 22e3da1

Please sign in to comment.