Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: hashicorp/nomad
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.9.6
Choose a base ref
...
head repository: hashicorp/nomad
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.9.7
Choose a head ref
Loading
Showing with 2,057 additions and 1,019 deletions.
  1. +1 −1 .changelog/24683.txt
  2. +7 −0 .changelog/24942.txt
  3. +3 −0 .changelog/25093.txt
  4. +3 −0 .changelog/25102.txt
  5. +3 −0 .changelog/25104.txt
  6. +3 −0 .changelog/25108.txt
  7. +3 −0 .changelog/25113.txt
  8. +5 −0 .changelog/25140.txt
  9. +3 −0 .changelog/25198.txt
  10. +3 −0 .changelog/25201.txt
  11. +3 −0 .changelog/25249.txt
  12. +3 −0 .changelog/25255.txt
  13. +3 −0 .changelog/25294.txt
  14. +3 −0 .changelog/25307.txt
  15. +3 −0 .changelog/25310.txt
  16. +3 −0 .changelog/25328.txt
  17. +1 −1 .github/workflows/backport.yml
  18. +14 −14 .github/workflows/build.yml
  19. +2 −2 .github/workflows/checks.yaml
  20. +0 −87 .github/workflows/ember-test-audit.yml
  21. +3 −3 .github/workflows/release.yml
  22. +1 −1 .github/workflows/security-scan.yml
  23. +14 −2 .github/workflows/semgrep.yml
  24. +5 −5 .github/workflows/test-core.yaml
  25. +3 −3 .github/workflows/test-e2e.yml
  26. +1 −1 .github/workflows/test-failure-notification.yml
  27. +50 −8 .github/workflows/test-ui.yml
  28. +2 −2 .github/workflows/test-windows.yml
  29. +1 −1 .go-version
  30. +3 −3 .golangci.yml
  31. +2 −3 .release/linux/package/usr/lib/systemd/system/nomad.service
  32. +0 −31 .semgrep/loopclosure.yml
  33. +1 −1 .semgrep/rpc_endpoint.yml
  34. +33 −1 CHANGELOG.md
  35. +4 −4 GNUmakefile
  36. +2 −2 client/allocrunner/networking_cni.go
  37. +10 −10 client/allocrunner/networking_cni_test.go
  38. +52 −32 client/allocrunner/taskrunner/plugin_supervisor_hook.go
  39. +44 −0 client/allocrunner/taskrunner/template/template_test.go
  40. +29 −10 client/client.go
  41. +14 −4 client/config/config.go
  42. +17 −0 client/config/config_test.go
  43. +1 −1 client/driver_manager_test.go
  44. +93 −28 client/fingerprint/consul.go
  45. +61 −45 client/fingerprint/consul_test.go
  46. +1 −1 client/fingerprint/cpu.go
  47. +5 −2 client/fingerprint/fingerprint.go
  48. +1 −1 client/fingerprint/nomad.go
  49. +1 −1 client/fingerprint/nomad_test.go
  50. +54 −5 client/fingerprint/vault.go
  51. +10 −6 client/fingerprint/vault_test.go
  52. +1 −1 client/lib/numalib/detect_darwin.go
  53. +1 −1 client/lib/numalib/detect_default.go
  54. +9 −7 client/lib/numalib/detect_linux.go
  55. +1 −1 client/lib/numalib/detect_noimpl_test.go
  56. +1 −1 client/lib/numalib/detect_test.go
  57. +1 −1 client/pluginmanager/drivermanager/testing.go
  58. +3 −0 command/agent/agent.go
  59. +59 −59 command/agent/bindata_assetfs.go
  60. +6 −0 command/agent/config.go
  61. +0 −6 command/agent/config_parse.go
  62. +11 −11 command/agent/config_test.go
  63. +2 −2 command/agent/test-resources/client_with_template.hcl
  64. +4 −0 command/asset/consul-wi-default-policy.hcl
  65. +14 −13 command/job_restart.go
  66. +0 −1 command/job_stop.go
  67. +1 −1 contributing/README.md
  68. +4 −3 drivers/docker/coordinator.go
  69. +4 −1 drivers/docker/driver.go
  70. +1 −25 drivers/docker/driver_test.go
  71. +1 −1 drivers/docker/fingerprint_test.go
  72. +4 −1 drivers/docker/network.go
  73. +22 −21 drivers/docker/utils.go
  74. +32 −0 drivers/docker/utils_test.go
  75. +1 −1 drivers/exec/driver_test.go
  76. +1 −1 drivers/java/driver_test.go
  77. +3 −3 drivers/qemu/driver_test.go
  78. +1 −1 drivers/rawexec/driver_test.go
  79. +1 −1 drivers/shared/executor/executor_basic.go
  80. +2 −2 drivers/shared/executor/executor_test.go
  81. +7 −1 drivers/shared/executor/executor_universal_linux.go
  82. +1 −1 drivers/shared/executor/executor_windows_test.go
  83. +2 −2 drivers/shared/executor/procstats/list_default.go
  84. +2 −2 drivers/shared/executor/procstats/list_windows.go
  85. +43 −43 go.mod
  86. +84 −80 go.sum
  87. +58 −0 helper/escapingfs/copydir.go
  88. +41 −0 helper/escapingfs/copydir_test.go
  89. +11 −2 jobspec2/hcl_conversions.go
  90. +9 −3 nomad/acl_endpoint.go
  91. +2 −0 nomad/state/events.go
  92. +15 −0 nomad/structs/acl.go
  93. +18 −0 nomad/structs/acl_test.go
  94. +2 −0 nomad/structs/node_class.go
  95. +3 −5 nomad/structs/node_class_test.go
  96. +2 −2 nomad/structs/structs.go
  97. +38 −19 scheduler/benchmarks/benchmarks_test.go
  98. +5 −4 scheduler/generic_sched.go
  99. +11 −0 scheduler/testing.go
  100. +51 −0 scripts/combine-ui-test-results.js
  101. +1 −1 scripts/linux-priv-go.sh
  102. +1 −1 scripts/release/mac-remote-build
  103. +3 −3 tools/go.mod
  104. +6 −6 tools/go.sum
  105. +1 −0 ui/app/index.html
  106. +18 −1 ui/app/models/job.js
  107. +19 −0 ui/app/templates/components/job-page/parts/title.hbs
  108. +9 −4 ui/app/templates/components/job-version.hbs
  109. +15 −0 ui/mirage/factories/job.js
  110. +31 −0 ui/mirage/scenarios/default.js
  111. +2 −1 ui/package.json
  112. +159 −0 ui/test-reporter.js
  113. +23 −0 ui/testem.js
  114. +26 −1 ui/tests/acceptance/job-detail-test.js
  115. +1 −0 ui/tests/acceptance/job-versions-test.js
  116. +14 −6 ui/tests/acceptance/regions-test.js
  117. +1 −0 ui/tests/acceptance/server-detail-test.js
  118. +1 −4 ui/tests/acceptance/task-logs-test.js
  119. +5 −1 ui/tests/helpers/module-for-job.js
  120. +6 −0 ui/tests/integration/components/job-page/periodic-test.js
  121. +14 −3 ui/tests/integration/components/job-page/service-test.js
  122. +17 −1 ui/tests/integration/components/task-log-test.js
  123. +1 −6 ui/yarn.lock
  124. +1 −1 version/version.go
  125. +1 −1 website/content/api-docs/events.mdx
  126. +1 −1 website/content/api-docs/nodes.mdx
  127. +2 −2 website/content/api-docs/task-api.mdx
  128. +5 −2 website/content/docs/commands/alloc/stop.mdx
  129. +18 −18 website/content/docs/commands/job/restart.mdx
  130. +2 −0 website/content/docs/commands/job/status.mdx
  131. +36 −0 website/content/docs/concepts/acl/auth-methods/jwt.mdx
  132. +117 −0 website/content/docs/concepts/acl/auth-methods/oidc.mdx
  133. +19 −0 website/content/docs/concepts/{acl.mdx → acl/index.mdx}
  134. +5 −5 website/content/docs/concepts/architecture/federation.mdx
  135. +22 −18 website/content/docs/concepts/job.mdx
  136. +6 −1 website/content/docs/concepts/scheduling/preemption.mdx
  137. +6 −2 website/content/docs/configuration/client.mdx
  138. +5 −5 website/content/docs/configuration/server.mdx
  139. +14 −8 website/content/docs/job-specification/consul.mdx
  140. +22 −10 website/content/docs/job-specification/disconnect.mdx
  141. +19 −19 website/content/docs/job-specification/group.mdx
  142. +10 −0 website/content/docs/job-specification/migrate.mdx
  143. +16 −6 website/content/docs/job-specification/reschedule.mdx
  144. +4 −2 website/content/docs/job-specification/restart.mdx
  145. +17 −0 website/content/partials/job-status-map.mdx
  146. +80 −0 website/content/partials/jwt_claim_mapping_details.mdx
  147. +6 −3 website/content/partials/virt-beta-callout.mdx
  148. +2 −2 website/content/plugins/drivers/virt/index.mdx
  149. +2 −2 website/content/plugins/drivers/virt/install.mdx
  150. +3 −2 website/content/plugins/drivers/virt/task-config.mdx
  151. +19 −1 website/data/docs-nav-data.json
  152. +34 −216 website/package-lock.json
  153. +6 −1 website/package.json
2 changes: 1 addition & 1 deletion .changelog/24683.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
```release-note:security
api: sanitize the SignedIdentities in allocations to prevent privilege escalation through unredacted workload identity token impersonation associated with ACL policies.
api: sanitize the SignedIdentities in allocations to prevent privilege escalation through unredacted workload identity token impersonation associated with ACL policies. ([CVE-2025-1296](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-1296))
```
7 changes: 7 additions & 0 deletions .changelog/24942.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
```release-note:bug
scheduler: Fixed a bug where node class hashes included unique attributes, making scheduling more costly
```

```release-note:breaking-change
node: The node attribute `consul.addr.dns` has been changed to `unique.consul.addr.dns`. The node attribute `nomad.advertise.address` has been changed to `unique.advertise.address`.
```
3 changes: 3 additions & 0 deletions .changelog/25093.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
cni: Fixed a bug where CNI state was not migrated after upgrade, resulting in IP collisions
```
3 changes: 3 additions & 0 deletions .changelog/25102.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
fingerprint: Fixed a bug where Consul/Vault would never be fingerprinted if not available on agent start
```
3 changes: 3 additions & 0 deletions .changelog/25104.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
ui: System, Batch and Sysbatch jobs get a "Revert to prev version" button on their main pages
```
3 changes: 3 additions & 0 deletions .changelog/25108.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
cpustats: Add config "cpu_disable_dmidecode" to disable cpu detection using dmidecode
```
3 changes: 3 additions & 0 deletions .changelog/25113.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
template: Fixed a bug where unset client.template retry blocks ignored defaults
```
5 changes: 5 additions & 0 deletions .changelog/25140.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
```release-note:bug
template: Updated the consul-template dependency to v0.40.0 which included a bug fix in the
quiescence timers. This bug could cause increased Nomad client CPU usage for tasks which use two or
more template blocks.
```
3 changes: 3 additions & 0 deletions .changelog/25198.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
metrics: Fix the process lookup for raw_exec when running rootless
```
3 changes: 3 additions & 0 deletions .changelog/25201.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
rpc: Fixed a bug that would cause the reader side of RPC connections to hang indefinitely
```
3 changes: 3 additions & 0 deletions .changelog/25249.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
build: Updated Go to 1.24.1
```
3 changes: 3 additions & 0 deletions .changelog/25255.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
config: Allow disabling `wait` in client config
```
3 changes: 3 additions & 0 deletions .changelog/25294.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
hcl: Avoid panics by checking null values on durations
```
3 changes: 3 additions & 0 deletions .changelog/25307.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
csi: Fixed a bug where plugins that failed initial fingerprints would not be restarted
```
3 changes: 3 additions & 0 deletions .changelog/25310.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
cli: Add node_prefix read when setting up the task workload identity Consul policy
```
3 changes: 3 additions & 0 deletions .changelog/25328.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:security
auth: Redact OIDC client secret from API responses and event stream ([CVE-2025-1296](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-1296))
```
2 changes: 1 addition & 1 deletion .github/workflows/backport.yml
Original file line number Diff line number Diff line change
@@ -54,7 +54,7 @@ jobs:
- name: Retrieve Vault-hosted Secrets
if: endsWith(github.repository, '-enterprise')
id: vault
uses: hashicorp/vault-action@d1720f055e0635fd932a1d2a48f87a666a57906c # v3.0.0
uses: hashicorp/vault-action@a1b77a09293a4366e48a5067a86692ac6e94fdc0 # v3.1.0
with:
url: ${{ vars.CI_VAULT_URL }}
method: ${{ vars.CI_VAULT_METHOD }}
28 changes: 14 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -69,7 +69,7 @@ jobs:
product: ${{ env.PKG_NAME }}
repositoryOwner: "hashicorp"
sha: ${{ github.event.inputs.build-ref }}
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
- uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
with:
name: metadata.json
path: ${{ steps.generate-metadata-file.outputs.filepath }}
@@ -90,15 +90,15 @@ jobs:
with:
ref: ${{ github.event.inputs.build-ref }}
- name: Setup go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: ${{ needs.get-go-version.outputs.go-version }}

- name: Build dependencies
run: make deps

- name: Setup node and yarn
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version: "18"
cache-dependency-path: "ui/yarn.lock"
@@ -121,7 +121,7 @@ jobs:
go clean -cache
make pkg/${{ matrix.goos }}_${{ matrix.goarch }}.zip
mv pkg/${{ matrix.goos }}_${{ matrix.goarch }}.zip ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
- uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
with:
name: ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip
path: ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip
@@ -142,15 +142,15 @@ jobs:
with:
ref: ${{ github.event.inputs.build-ref }}
- name: Setup go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: ${{ needs.get-go-version.outputs.go-version }}

- name: Build dependencies
run: make deps

- name: Setup node and yarn
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version: "18"
cache-dependency-path: "ui/yarn.lock"
@@ -188,7 +188,7 @@ jobs:
go clean -cache
make pkg/${{ matrix.goos }}_${{ matrix.goarch }}.zip
mv pkg/${{ matrix.goos }}_${{ matrix.goarch }}.zip ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
- uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
with:
name: ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip
path: ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip
@@ -225,12 +225,12 @@ jobs:
echo "RPM_PACKAGE=$(basename out/*.rpm)" >> "$GITHUB_ENV"
echo "DEB_PACKAGE=$(basename out/*.deb)" >> "$GITHUB_ENV"
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
- uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
with:
name: ${{ env.RPM_PACKAGE }}
path: out/${{ env.RPM_PACKAGE }}

- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
- uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
with:
name: ${{ env.DEB_PACKAGE }}
path: out/${{ env.DEB_PACKAGE }}
@@ -254,7 +254,7 @@ jobs:
- name: Retrieve Vault-hosted Secrets
if: endsWith(github.repository, '-enterprise')
id: vault
uses: hashicorp/vault-action@d1720f055e0635fd932a1d2a48f87a666a57906c # v3.0.0
uses: hashicorp/vault-action@a1b77a09293a4366e48a5067a86692ac6e94fdc0 # v3.1.0
with:
url: ${{ vars.CI_VAULT_URL }}
method: ${{ vars.CI_VAULT_METHOD }}
@@ -267,15 +267,15 @@ jobs:
run: git config --global url.'https://${{ env.ELEVATED_GITHUB_TOKEN }}@github.com'.insteadOf 'https://github.com'

- name: Setup go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: ${{ needs.get-go-version.outputs.go-version }}

- name: Build dependencies
run: make deps

- name: Setup node and yarn
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version: "18"
cache-dependency-path: "ui/yarn.lock"
@@ -298,7 +298,7 @@ jobs:
go clean -cache
make pkg/${{ matrix.goos }}_${{ matrix.goarch }}.zip
mv pkg/${{ matrix.goos }}_${{ matrix.goarch }}.zip ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
- uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
with:
name: ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip
path: ${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip
@@ -358,7 +358,7 @@ jobs:
goos: [linux]
goarch: [amd64]
steps:
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: ${{needs.get-go-version.outputs.go-version}}
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
4 changes: 2 additions & 2 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ jobs:
- name: Retrieve Vault-hosted Secrets
if: endsWith(github.repository, '-enterprise')
id: vault
uses: hashicorp/vault-action@d1720f055e0635fd932a1d2a48f87a666a57906c # v3.0.0
uses: hashicorp/vault-action@a1b77a09293a4366e48a5067a86692ac6e94fdc0 # v3.1.0
with:
url: ${{ vars.CI_VAULT_URL }}
method: ${{ vars.CI_VAULT_METHOD }}
@@ -41,7 +41,7 @@ jobs:
- name: Git config token
if: endsWith(github.repository, '-enterprise')
run: git config --global url.'https://${{ env.ELEVATED_GITHUB_TOKEN }}@github.com'.insteadOf 'https://github.com'
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
cache: true
go-version-file: .go-version
87 changes: 0 additions & 87 deletions .github/workflows/ember-test-audit.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -58,7 +58,7 @@ jobs:
- name: Retrieve Vault-hosted Secrets
if: endsWith(github.repository, '-enterprise')
id: vault
uses: hashicorp/vault-action@d1720f055e0635fd932a1d2a48f87a666a57906c # v3.0.0
uses: hashicorp/vault-action@a1b77a09293a4366e48a5067a86692ac6e94fdc0 # v3.1.0
with:
url: ${{ vars.CI_VAULT_URL }}
method: ${{ vars.CI_VAULT_METHOD }}
@@ -82,12 +82,12 @@ jobs:
echo "go-version=$(cat .go-version)" >> "$GITHUB_OUTPUT"
- name: Setup go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: ${{ steps.get-go-version.outputs.go-version }}

- name: Setup node and yarn
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version: "18"
cache-dependency-path: "ui/yarn.lock"
2 changes: 1 addition & 1 deletion .github/workflows/security-scan.yml
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@ jobs:

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
cache: ${{ contains(runner.name, 'Github Actions') }}
go-version-file: .go-version
16 changes: 14 additions & 2 deletions .github/workflows/semgrep.yml
Original file line number Diff line number Diff line change
@@ -6,17 +6,29 @@ on:
# push:

jobs:
semgrep-validate:
name: Semgrep Validate
if: (github.actor != 'dependabot[bot]')
runs-on: ubuntu-latest
container:
image: returntocorp/semgrep:1.107.0
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- run: semgrep --metrics=off --validate --config=.semgrep/

semgrep:
name: Semgrep Scan
needs: [semgrep-validate]
runs-on: ubuntu-latest
container:
image: returntocorp/semgrep:1.36.0
image: returntocorp/semgrep:1.107.0
env:
SEMGREP_SEND_METRICS: 0
SEMGREP_SEND_METRICS: off
# Skip any PR created by dependabot to avoid permission issues
if: (github.actor != 'dependabot[bot]')
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- run: semgrep ci --config=.semgrep/

permissions:
contents: read
Loading