@abgov/nx-oc 12.6.0 → 12.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/nx-oc",
3
- "version": "12.6.0",
3
+ "version": "12.7.0",
4
4
  "license": "Apache-2.0",
5
5
  "main": "src/index.js",
6
6
  "description": "Government of Alberta - Nx plugin for OpenShift.",
@@ -21,6 +21,8 @@ on:
21
21
  branches:
22
22
  - main
23
23
 
24
+ pull_request:
25
+
24
26
  workflow_dispatch:
25
27
  inputs:
26
28
  SELECTED_BASE:
@@ -37,7 +39,50 @@ concurrency:
37
39
  cancel-in-progress: true
38
40
 
39
41
  jobs:
42
+ check:
43
+ if: github.event_name == 'pull_request'
44
+ runs-on: ubuntu-24.04
45
+ timeout-minutes: 15
46
+ permissions:
47
+ contents: read
48
+ env:
49
+ AFFECTED_BASE: "origin/main"
50
+ steps:
51
+ - uses: actions/checkout@v5
52
+ with:
53
+ fetch-depth: 0
54
+ - uses: actions/setup-node@v5
55
+ with:
56
+ node-version: "24"
57
+ cache: "npm"
58
+ - run: npm ci
59
+ - name: Get last successful commit
60
+ id: last_successful_commit
61
+ uses: nrwl/nx-set-shas@v5
62
+ - name: Set AFFECTED_BASE to last successful build commit
63
+ if: ${{ steps.last_successful_commit.outputs.base }}
64
+ run: echo "AFFECTED_BASE=${{ steps.last_successful_commit.outputs.base }}" >> $GITHUB_ENV
65
+ - name: Lint
66
+ run: npx nx affected --target=lint --base=${{ env.AFFECTED_BASE }}
67
+ - name: Test
68
+ run: npx nx affected --target=test --base=${{ env.AFFECTED_BASE }}
69
+ - name: Build
70
+ run: npx nx affected --target=build --base=${{ env.AFFECTED_BASE }}
71
+ - name: Audit dependencies
72
+ run: npm audit --audit-level=high
73
+ - name: Install Semgrep
74
+ run: pip install semgrep
75
+ - name: Semgrep SAST
76
+ run: npx nx affected --target=semgrep --base=${{ env.AFFECTED_BASE }}
77
+ - uses: trufflesecurity/trufflehog@main
78
+ with:
79
+ extra_args: --only-verified
80
+ - uses: hadolint/hadolint-action@v3
81
+ with:
82
+ recursive: true
83
+
40
84
  build:
85
+ if: github.event_name != 'pull_request'
41
86
  runs-on: ubuntu-24.04
42
87
  timeout-minutes: 30
43
88
  permissions: