From bf32c122e8f32ebee3d5d1ba20a3d3f0ff1bb5fd Mon Sep 17 00:00:00 2001 From: Alexey Alter-Pesotskiy Date: Thu, 3 Dec 2026 12:09:14 +0000 Subject: [PATCH 1/4] ci: add Dependabot and dependency review, pin and align GitHub Actions --- .github/actions/setup-node/action.yml | 2 +- .github/dependabot.yml | 30 +++++++++++++++++++++++++ .github/workflows/android_ci.yml | 6 ++--- .github/workflows/ci.yml | 4 ++-- .github/workflows/dependency_review.yml | 17 ++++++++++++++ .github/workflows/ios_ci.yml | 6 ++--- .github/workflows/release.yml | 2 +- 7 files changed, 57 insertions(+), 10 deletions(-) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/dependency_review.yml diff --git a/.github/actions/setup-node/action.yml b/.github/actions/setup-node/action.yml index e0146982a..8e1720873 100644 --- a/.github/actions/setup-node/action.yml +++ b/.github/actions/setup-node/action.yml @@ -7,7 +7,7 @@ inputs: runs: using: composite steps: - - uses: actions/setup-node@v6 + - uses: actions/setup-node@8fccf151e3ba8038c300f83b40c8fd1e94f9c5ce # v7.2.0 with: node-version: ${{ inputs.node-version }} node-version-file: .nvmrc diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..181481989 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,30 @@ +version: 2 + +updates: + - package-ecosystem: github-actions + directories: + - / + - /.github/actions/* + schedule: + interval: weekly + cooldown: + default-days: 7 + groups: + github-actions: + patterns: ["*"] + commit-message: + prefix: chore + include: scope + + - package-ecosystem: npm + directory: / + schedule: + interval: weekly + cooldown: + default-days: 7 + groups: + npm: + patterns: ["*"] + commit-message: + prefix: chore + include: scope diff --git a/.github/workflows/android_ci.yml b/.github/workflows/android_ci.yml index e82c33a82..7e9e4d948 100644 --- a/.github/workflows/android_ci.yml +++ b/.github/workflows/android_ci.yml @@ -14,10 +14,10 @@ permissions: jobs: android-compile: - runs-on: { group: github-public-amd64 } + runs-on: ubuntu-26.04 steps: - - uses: actions/checkout@v6 - - uses: actions/setup-java@v5 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880 # v6.3.0 with: distribution: 'temurin' java-version: '17' diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f84906411..3a7702c1a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,9 +8,9 @@ permissions: jobs: run-ci: name: Lint - runs-on: { group: github-public-amd64 } + runs-on: ubuntu-26.04 steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - uses: ./.github/actions/setup-node - name: Check if the git repository is clean run: $(exit $(git status --porcelain --untracked-files=no | head -255 | wc -l)) || (echo "Dirty git tree"; git diff; exit 1) diff --git a/.github/workflows/dependency_review.yml b/.github/workflows/dependency_review.yml new file mode 100644 index 000000000..28464e045 --- /dev/null +++ b/.github/workflows/dependency_review.yml @@ -0,0 +1,17 @@ +name: Dependency Review + +on: + pull_request: + +permissions: + contents: read + +jobs: + dependency-review: + name: Dependency Review + runs-on: { group: github-public-amd64 } + steps: + - uses: actions/dependency-review-action@bbc44d14a204704ccc493733616cd1e93a0321ec # v5.0.1 + with: + show-openssf-scorecard: true + warn-on-openssf-scorecard-level: 3 diff --git a/.github/workflows/ios_ci.yml b/.github/workflows/ios_ci.yml index f07d37a44..0cb50874d 100644 --- a/.github/workflows/ios_ci.yml +++ b/.github/workflows/ios_ci.yml @@ -15,9 +15,9 @@ permissions: jobs: ios-compile: - runs-on: macos-latest + runs-on: { group: scaleway-macos } steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - uses: ./.github/actions/setup-node - name: Get Xcode version @@ -25,7 +25,7 @@ jobs: run: echo "version=$(xcodebuild -version | awk 'NR==1{print $2}')" >> $GITHUB_OUTPUT - name: Cache cocoapods - uses: actions/cache@v4 + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: | examples/GumTestApp/ios/Pods diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1f853a011..d914888de 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,7 +28,7 @@ jobs: if: ${{ inputs.dry_run || github.ref_name == 'master' || github.ref_name == 'beta' || github.ref_name == 'alpha' || startsWith(github.ref_name, 'release') || endsWith(github.ref_name, '.x') }} steps: - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 # full history + tags required by semantic-release From 3568f25a0fc325e2af36384355d6cbba2b3c704a Mon Sep 17 00:00:00 2001 From: Alexey Alter-Pesotskiy Date: Thu, 3 Dec 2026 15:12:12 +0000 Subject: [PATCH 2/4] ci: keep the iOS job on its original runner --- .github/workflows/ios_ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ios_ci.yml b/.github/workflows/ios_ci.yml index 0cb50874d..460fe4e94 100644 --- a/.github/workflows/ios_ci.yml +++ b/.github/workflows/ios_ci.yml @@ -15,7 +15,7 @@ permissions: jobs: ios-compile: - runs-on: { group: scaleway-macos } + runs-on: macos-latest steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - uses: ./.github/actions/setup-node From 9b4f95511a64d5019c60add9e5bd8c009d5bd58c Mon Sep 17 00:00:00 2001 From: Alexey Alter-Pesotskiy Date: Thu, 3 Dec 2026 15:13:55 +0000 Subject: [PATCH 3/4] ci: shorten the Dependabot cooldown and keep npm to security updates --- .github/dependabot.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 181481989..ffa1be521 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -8,7 +8,7 @@ updates: schedule: interval: weekly cooldown: - default-days: 7 + default-days: 4 groups: github-actions: patterns: ["*"] @@ -16,15 +16,12 @@ updates: prefix: chore include: scope + # Version updates are off for npm packages: only security updates are proposed. - package-ecosystem: npm directory: / schedule: interval: weekly - cooldown: - default-days: 7 - groups: - npm: - patterns: ["*"] + open-pull-requests-limit: 0 commit-message: prefix: chore include: scope From 1da596e39d159cd4cf3834a77c1b07efdb3036b0 Mon Sep 17 00:00:00 2001 From: Alexey Alter-Pesotskiy Date: Thu, 3 Dec 2026 17:22:35 +0000 Subject: [PATCH 4/4] ci: add a timeout and a step name to the dependency review workflow --- .github/workflows/dependency_review.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dependency_review.yml b/.github/workflows/dependency_review.yml index 28464e045..f04cc058a 100644 --- a/.github/workflows/dependency_review.yml +++ b/.github/workflows/dependency_review.yml @@ -9,9 +9,12 @@ permissions: jobs: dependency-review: name: Dependency Review - runs-on: { group: github-public-amd64 } + runs-on: + group: github-public-amd64 + timeout-minutes: 5 steps: - - uses: actions/dependency-review-action@bbc44d14a204704ccc493733616cd1e93a0321ec # v5.0.1 - with: - show-openssf-scorecard: true - warn-on-openssf-scorecard-level: 3 + - name: Dependency Review + uses: actions/dependency-review-action@bbc44d14a204704ccc493733616cd1e93a0321ec # v5.0.1 + with: + show-openssf-scorecard: true + warn-on-openssf-scorecard-level: 3