Skip to content

Commit df9388d

Browse files
committed
Merge remote-tracking branch 'origin/main' into davidkna-sap_internal-ts-shim
* origin/main: chore(deps): bump js-yaml from 4.1.1 to 4.2.0 (#6647) chore(deps): bump eslint-plugin-jsdoc from 62.9.0 to 63.0.0 (#6628) chore(deps): bump bignumber.js from 11.1.1 to 11.1.2 (#6644) chore: Set explicit workflow permissions (#6629) chore(deps-dev): bump turbo from 2.9.15 to 2.9.16 (#6645) chore(deps): bump memfs from 4.57.2 to 4.57.3 (#6643) chore(deps): bump eslint-plugin-prettier from 5.5.5 to 5.5.6 (#6641) chore(deps-dev): bump eslint from 10.4.0 to 10.4.1 (#6642) chore(deps-dev): bump @sap/cds-dk from 9.9.1 to 9.9.2 (#6640)
2 parents 78d508c + 98b452e commit df9388d

22 files changed

Lines changed: 14064 additions & 14732 deletions

File tree

.github/actions/changesets-fixed-version-bump/index.js

Lines changed: 3362 additions & 3623 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/actions/check-public-api/index.js

Lines changed: 7712 additions & 7973 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/actions/merge-and-write-changelogs/index.js

Lines changed: 2573 additions & 2834 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/api-docs.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,26 @@ on:
77
description: 'Version to generate docs for'
88
required: true
99
type: string
10+
secrets:
11+
NPM_TOKEN_ARTIFACTORY:
12+
required: true
13+
SAP_CLOUD_SDK_BOT_CLIENT_ID:
14+
required: true
15+
SAP_CLOUD_SDK_BOT_PRIVATE_KEY:
16+
required: true
1017
workflow_dispatch:
1118
inputs:
1219
version:
1320
description: 'Version to generate docs for'
1421
required: true
1522
type: string
1623

24+
permissions: {}
25+
1726
jobs:
1827
generate-and-push-docs:
28+
permissions:
29+
contents: read
1930
runs-on: ubuntu-latest
2031
steps:
2132
- uses: sap/cloud-sdk-js/.github/actions/setup@main

.github/workflows/auto-dependabot-fix.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ name: auto-dependabot-fix
33
on:
44
pull_request_target: ~
55

6+
permissions: {}
7+
68
jobs:
79
building:
10+
permissions:
11+
contents: read
812
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == github.event.pull_request.head.repo.full_name
913
runs-on: ubuntu-latest
1014
steps:

.github/workflows/auto-lint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ name: auto-lint-fix
33
on:
44
pull_request: ~
55

6+
permissions: {}
7+
68
jobs:
79
linting:
10+
permissions:
11+
contents: read
812
if: github.actor != 'dependabot[bot]' && github.repository == github.event.pull_request.head.repo.full_name
913
runs-on: ubuntu-latest
1014
steps:

.github/workflows/blackduck.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@ on:
55
schedule:
66
- cron: 0 23 * * *
77

8+
permissions: {}
9+
810
jobs:
911
tests:
1012
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
1115
timeout-minutes: 15
1216
steps:
1317
- uses: sap/cloud-sdk-js/.github/actions/setup@main

.github/workflows/build.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,21 @@ on:
2020
type: boolean
2121
required: false
2222
default: false
23+
secrets:
24+
NPM_TOKEN_ARTIFACTORY:
25+
required: false
26+
SLACK_WEBHOOK:
27+
required: false
28+
29+
permissions: {}
2330

2431
jobs:
2532
tests:
2633
if: inputs.canary-release-skip-checks == false
2734
runs-on: ubuntu-latest
2835
timeout-minutes: 15
36+
permissions:
37+
contents: read
2938
strategy:
3039
fail-fast: false
3140
matrix:
@@ -35,9 +44,7 @@ jobs:
3544
with:
3645
node-version: ${{ matrix.node-version }}
3746
registry-token: ${{ secrets.NPM_TOKEN_ARTIFACTORY }}
38-
- env:
39-
SANDBOX_TOKEN: ${{ secrets.API_HUB_SANDBOX_TOKEN }}
40-
run: pnpm run test:unit
47+
- run: pnpm run test:unit
4148
- run: pnpm run test:integration
4249
- run: pnpm run test:self
4350
- run: pnpm run test:build-packages
@@ -58,6 +65,8 @@ jobs:
5865
checks:
5966
if: inputs.canary-release-skip-checks == false
6067
runs-on: ubuntu-latest
68+
permissions:
69+
contents: read
6170
steps:
6271
- uses: sap/cloud-sdk-js/.github/actions/setup@main
6372
with:
@@ -99,6 +108,8 @@ jobs:
99108
e2e-tests:
100109
if: inputs.canary-release-skip-checks == false
101110
runs-on: ubuntu-latest
111+
permissions:
112+
contents: read
102113
steps:
103114
- uses: sap/cloud-sdk-js/.github/actions/setup@main
104115
with:
@@ -133,6 +144,8 @@ jobs:
133144
canary-release-pre-check:
134145
if: inputs.is-workflow-call && inputs.canary-release-skip-checks == false
135146
runs-on: ubuntu-latest
147+
permissions:
148+
contents: read
136149
outputs:
137150
skip-release: ${{ steps.date-check.outputs.skip-release }}
138151
needs: [tests, checks, e2e-tests]
@@ -167,6 +180,7 @@ jobs:
167180
runs-on: ubuntu-latest
168181
needs: [canary-release-pre-check]
169182
permissions:
183+
contents: read
170184
id-token: write
171185
steps:
172186
- uses: sap/cloud-sdk-js/.github/actions/setup@main
@@ -189,6 +203,8 @@ jobs:
189203
if: startsWith(github.ref, 'refs/tags/v')
190204
runs-on: ubuntu-latest
191205
needs: [tests, checks]
206+
permissions:
207+
contents: write
192208
steps:
193209
- uses: sap/cloud-sdk-js/.github/actions/setup@main
194210
with:

.github/workflows/bump.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@ on:
77
description: Mandatory, when bumping a major version. Semver compatible version string (X.Y.Z). Must not be set for patch and minor version releases.
88
required: false
99

10+
permissions: {}
11+
1012
jobs:
1113
bump:
1214
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
1317
outputs:
1418
version: ${{ steps.bump.outputs.version }}
1519
steps:
@@ -56,7 +60,12 @@ jobs:
5660
generate-api-docs:
5761
name: Generate and Push API Documentation
5862
needs: [bump]
63+
permissions:
64+
contents: read
5965
uses: ./.github/workflows/api-docs.yml
60-
secrets: inherit
66+
secrets:
67+
NPM_TOKEN_ARTIFACTORY: ${{ secrets.NPM_TOKEN_ARTIFACTORY }}
68+
SAP_CLOUD_SDK_BOT_CLIENT_ID: ${{ secrets.SAP_CLOUD_SDK_BOT_CLIENT_ID }}
69+
SAP_CLOUD_SDK_BOT_PRIVATE_KEY: ${{ secrets.SAP_CLOUD_SDK_BOT_PRIVATE_KEY }}
6170
with:
6271
version: v${{ needs.bump.outputs.version }}

.github/workflows/check-pr.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@ on:
77
- edited
88
- synchronize
99

10+
permissions: {}
11+
1012
jobs:
1113
check-pr:
1214
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
1317
steps:
1418
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1519
with:

0 commit comments

Comments
 (0)