Skip to content

Commit f35ff2b

Browse files
chore(ci-governance): synchronize Node profile
Governance-Provenance: hmac-sha256:5c754083c5edd82d09fbc963e4382cc72582a4470994705efcd9a9588df659b7
1 parent 4cb7176 commit f35ff2b

5 files changed

Lines changed: 32 additions & 11 deletions

File tree

.github/inditextech-ci-sync-manifest.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"creation_year": 2026,
1414
"integrity": {
1515
"algorithm": "hmac-sha256",
16-
"signature": "6cbdc2ef01327a5d5d9bc3da231434bb01b83dc5878f319398798c12c3904c5e"
16+
"signature": "3633e607144a5e6a891f585605a8730dc743cbdf59c2c5f67164d11e77232b10"
1717
},
1818
"managed_by": "InditexTech CI governance",
1919
"managed_paths": {
@@ -29,10 +29,10 @@
2929
".github/workflows/code-npm_node-sonarcloud-analysis.yml": "70c1c21825cde574d4744b308e198d030dbabddaa0f8ba07980be253ea6d7afa",
3030
".github/workflows/code-release_preview.yml": "4e2e95d60a498eb12d97ba5c8330b1173f04b02c807140beddad06a6e225b166",
3131
".github/workflows/codeql.yml": "633c0f288566fd1408e7ad545c7631e05f861ebf4ebdce3fe9586672ef065d97",
32-
".github/workflows/pr-verify.yml": "f52295fbfe81578c0a6459d8b384be569933ac78d32fff370932a8dec6943e46",
33-
".github/workflows/push-verify.yml": "fd700ba0ee23fdee9cd7ecf23ad386247f4b621b73cc1946f9ef0eda4ea07086",
34-
".github/workflows/scorecard-analysis.yml": "5bd6da647f708cced5d33411cc27aac7f7ee2be06ae541defea677d70fe80481",
35-
".github/workflows/sync-to-develop.yml": "5c35cf0b946a939d0324b1530a78e319e979f993bd1f0105e64fc4478395d8d7",
32+
".github/workflows/pr-verify.yml": "b39240fd362fb004c3b47cd4189cb527d9e27a7c37645bbe6324d2a757e34f7f",
33+
".github/workflows/push-verify.yml": "49e6e9c6a7015ea59a2bc831982b2fc4bfd1d5721302f6041170b4a15b7d56e1",
34+
".github/workflows/scorecard-analysis.yml": "9866047c5d638ee5d9246e646400cad473ce8ab0f66b444337405b8f9f324f6e",
35+
".github/workflows/sync-to-develop.yml": "1b2d0f33094052f771d91a7e7c29a666e8a9cee5cc5ca28e1f40168920ca2702",
3636
".tool-versions": "5e7b05edf5d8df174df5dd99d012e57666ec9923ac8506df7dc7753ba41815fd",
3737
"CODE_OF_CONDUCT.md": "ce1e7a8f68a7917d48c03f9f7aae5529367f73af0e959276e889d33ea1e8d4ab",
3838
"CONTRIBUTING.md": "4e1264ca54a45df44b362c7533f0eba912bfa77b6f561121ae9e5e9d6aa00df3",
@@ -50,7 +50,7 @@
5050
"retained_paths": {},
5151
"schema_version": 2,
5252
"source_digests": {
53-
"base": "5070fc83e3b1e67ddc4c2463e767ff3d0d364115c6433d2ae0de75afef2e0e63",
53+
"base": "84ae844059a60d9ea8bc96910d88c912b9875aa90e48411b243f119f584fd571",
5454
"node": "d2f8082132a512a1770518d0995acf54caa0690a8e0fea20b5691805c6a5473c"
5555
}
5656
}

.github/workflows/pr-verify.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ jobs:
1919
timeout-minutes: 10
2020
permissions:
2121
contents: read
22-
checks: write # Lets reviewdog publish actionlint check results.
2322
steps:
2423
- name: Checkout
2524
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -31,7 +30,7 @@ jobs:
3130
- name: Lint GitHub Actions workflows
3231
uses: reviewdog/action-actionlint@dbe5299849118fd6f099ba563d263d770955a64a # v1.73.2
3332
with:
34-
reporter: github-pr-check
33+
reporter: github-annotations
3534
fail_level: error
3635

3736
repo-linter:

.github/workflows/push-verify.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ jobs:
2222
timeout-minutes: 10
2323
permissions:
2424
contents: read
25-
checks: write # Lets reviewdog publish actionlint check results.
2625
steps:
2726
- name: Checkout
2827
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -32,7 +31,7 @@ jobs:
3231
- name: Lint GitHub Actions workflows
3332
uses: reviewdog/action-actionlint@dbe5299849118fd6f099ba563d263d770955a64a # v1.73.2
3433
with:
35-
reporter: github-check
34+
reporter: github-annotations
3635
fail_level: error
3736

3837
repo-linter:

.github/workflows/scorecard-analysis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,29 @@ jobs:
4949
path: results.sarif
5050
retention-days: 5
5151

52+
- name: Resolve code scanning availability
53+
id: scanning-availability
54+
env:
55+
GH_TOKEN: ${{ github.token }}
56+
FORCE_ENABLED: ${{ vars.CODE_SCANNING_ENABLED }}
57+
run: |
58+
set -euo pipefail
59+
visibility="$(gh api "/repos/${GITHUB_REPOSITORY}" --jq '.visibility' 2>/dev/null || echo unknown)"
60+
seat="$(gh api "/repos/${GITHUB_REPOSITORY}" --jq '.security_and_analysis.advanced_security.status // "unknown"' 2>/dev/null || echo unknown)"
61+
enabled=false
62+
if [ "${visibility}" = "public" ] || [ "${seat}" = "enabled" ] || [ "${FORCE_ENABLED:-}" = "true" ]; then
63+
enabled=true
64+
fi
65+
echo "Code scanning availability: visibility=${visibility} seat=${seat} enabled=${enabled}"
66+
echo "enabled=${enabled}" >> "${GITHUB_OUTPUT}"
67+
5268
- name: Upload SARIF to Code Scanning
69+
if: steps.scanning-availability.outputs.enabled == 'true'
5370
uses: github/codeql-action/upload-sarif@db488ddef3bf6cb639b32c2e9a7c0a7ea8271d28 # v4.37.8
5471
with:
5572
sarif_file: results.sarif
5673
category: scorecard
74+
75+
- name: Report unavailable Code Scanning
76+
if: steps.scanning-availability.outputs.enabled != 'true'
77+
run: echo "::notice::Scorecard SARIF is retained as an artifact; Code Scanning ingestion is unavailable."

.github/workflows/sync-to-develop.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
concurrency:
2828
group: sync-to-develop-${{ github.repository }}-${{ github.event.pull_request.base.ref }}
2929
cancel-in-progress: false
30+
env:
31+
SYNC_BASE_REF: ${{ github.event.pull_request.base.ref }}
3032
steps:
3133
# The checkout runs *before* any App credential exists. This event carries
3234
# the base repository's secrets, so ordering is the cheap half of the
@@ -40,7 +42,7 @@ jobs:
4042
# Deliberately the base branch, not the merge SHA. Central policy
4143
# requires this ref, and the branch is trusted here: this event only
4244
# fires for an already-merged pull request.
43-
ref: ${{ github.event.pull_request.base.ref }}
45+
ref: ${{ env.SYNC_BASE_REF }}
4446

4547
- name: Create GitHub App token
4648
id: app-token

0 commit comments

Comments
 (0)