diff --git a/.github/workflows/PowerShell.yaml b/.github/workflows/PowerShell.yaml index 7693e3f9f2..8bae7d2b53 100644 --- a/.github/workflows/PowerShell.yaml +++ b/.github/workflows/PowerShell.yaml @@ -21,6 +21,11 @@ jobs: permissions: security-events: write # for github/codeql-action/upload-sarif to upload SARIF results steps: + - name: Harden Runner + uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 + with: + egress-policy: audit + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Run PSScriptAnalyzer diff --git a/.github/workflows/UpdateALGoOnOfficialBranches.yaml b/.github/workflows/UpdateALGoOnOfficialBranches.yaml index 824bd68847..10dcf3de55 100644 --- a/.github/workflows/UpdateALGoOnOfficialBranches.yaml +++ b/.github/workflows/UpdateALGoOnOfficialBranches.yaml @@ -15,6 +15,11 @@ jobs: outputs: updateBranches: ${{ steps.getOfficialBranches.outputs.branchesJson }} steps: + - name: Harden Runner + uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 + with: + egress-policy: audit + - name: Get Official Branches id: getOfficialBranches uses: microsoft/BCApps/.github/actions/GetGitBranches@main @@ -32,6 +37,11 @@ jobs: branch: ${{ fromJson(needs.GetBranches.outputs.updateBranches) }} fail-fast: false steps: + - name: Harden Runner + uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 + with: + egress-policy: audit + - name: Update AL-Go System Files env: GH_TOKEN: ${{ secrets.GHTOKENWORKFLOW }} diff --git a/.github/workflows/UpdateBCArtifactVersion.yaml b/.github/workflows/UpdateBCArtifactVersion.yaml index c1ce563681..db5af2e656 100644 --- a/.github/workflows/UpdateBCArtifactVersion.yaml +++ b/.github/workflows/UpdateBCArtifactVersion.yaml @@ -19,6 +19,11 @@ jobs: outputs: updateBranches: ${{ steps.getOfficialBranches.outputs.branchesJson }} steps: + - name: Harden Runner + uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 + with: + egress-policy: audit + - name: Get Official Branches id: getOfficialBranches uses: microsoft/BCApps/.github/actions/GetGitBranches@main @@ -40,7 +45,7 @@ jobs: fail-fast: false steps: - name: Checkout - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: ref: ${{ matrix.branch }} diff --git a/.github/workflows/UpdatePackageVersions.yaml b/.github/workflows/UpdatePackageVersions.yaml index 11836708fa..f57a05e6e1 100644 --- a/.github/workflows/UpdatePackageVersions.yaml +++ b/.github/workflows/UpdatePackageVersions.yaml @@ -19,6 +19,11 @@ jobs: outputs: updateBranches: ${{ steps.getOfficialBranches.outputs.branchesJson }} steps: + - name: Harden Runner + uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 + with: + egress-policy: audit + - name: Get Official Branches id: getOfficialBranches uses: microsoft/BCApps/.github/actions/GetGitBranches@main diff --git a/.github/workflows/WorkitemValidation.yaml b/.github/workflows/WorkitemValidation.yaml index 6b4265f850..296d27b980 100644 --- a/.github/workflows/WorkitemValidation.yaml +++ b/.github/workflows/WorkitemValidation.yaml @@ -19,6 +19,11 @@ jobs: name: 'Validate link to issues' runs-on: ubuntu-latest steps: + - name: Harden Runner + uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 + with: + egress-policy: audit + - name: Checkout uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 @@ -34,6 +39,11 @@ jobs: runs-on: ubuntu-latest needs: GitHubIssueValidation steps: + - name: Harden Runner + uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 + with: + egress-policy: audit + - name: Checkout uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 diff --git a/.github/workflows/scorecard-analysis.yml b/.github/workflows/scorecard-analysis.yml index 3ca2b145b2..b8a8a052f1 100644 --- a/.github/workflows/scorecard-analysis.yml +++ b/.github/workflows/scorecard-analysis.yml @@ -17,6 +17,11 @@ jobs: id-token: write # Needed for GitHub OIDC token if publish_results is true steps: + - name: Harden Runner + uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 + with: + egress-policy: audit + - name: "Checkout code" uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: