Skip to content

Commit 524e409

Browse files
dependabot[bot]neilime
authored andcommitted
build(deps): Bump the github-actions-dependencies group across 3 directories with 5 updates
Bumps the github-actions-dependencies group with 4 updates in the / directory: [actions/create-github-app-token](https://github.com/actions/create-github-app-token), [hoverkraft-tech/ci-github-container](https://github.com/hoverkraft-tech/ci-github-container), [hoverkraft-tech/ci-github-container/.github/workflows/docker-build-images.yml](https://github.com/hoverkraft-tech/ci-github-container) and [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter). Bumps the github-actions-dependencies group with 1 update in the /actions/deploy/jampack directory: [actions/cache](https://github.com/actions/cache). Bumps the github-actions-dependencies group with 1 update in the /actions/release/create directory: [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter). Updates `actions/create-github-app-token` from 2.2.1 to 3.0.0 - [Release notes](https://github.com/actions/create-github-app-token/releases) - [Commits](actions/create-github-app-token@29824e6...f8d387b) Updates `hoverkraft-tech/ci-github-container` from 0.30.6 to 0.31.0 - [Release notes](https://github.com/hoverkraft-tech/ci-github-container/releases) - [Commits](hoverkraft-tech/ci-github-container@a0bab91...df8b445) Updates `hoverkraft-tech/ci-github-container/.github/workflows/docker-build-images.yml` from 0.30.6 to 0.31.0 - [Release notes](https://github.com/hoverkraft-tech/ci-github-container/releases) - [Commits](hoverkraft-tech/ci-github-container@a0bab91...df8b445) Updates `release-drafter/release-drafter` from 6.4.0 to 7.1.1 - [Release notes](https://github.com/release-drafter/release-drafter/releases) - [Commits](release-drafter/release-drafter@6a93d82...139054a) Updates `actions/cache` from 5.0.3 to 5.0.4 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](actions/cache@cdf6c1f...6682284) Updates `release-drafter/release-drafter` from 6.4.0 to 7.1.1 - [Release notes](https://github.com/release-drafter/release-drafter/releases) - [Commits](release-drafter/release-drafter@6a93d82...139054a) --- updated-dependencies: - dependency-name: actions/create-github-app-token dependency-version: 3.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions-dependencies - dependency-name: hoverkraft-tech/ci-github-container dependency-version: 0.31.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-dependencies - dependency-name: hoverkraft-tech/ci-github-container/.github/workflows/docker-build-images.yml dependency-version: 0.31.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-dependencies - dependency-name: release-drafter/release-drafter dependency-version: 7.1.1 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions-dependencies - dependency-name: actions/cache dependency-version: 5.0.4 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions-dependencies - dependency-name: release-drafter/release-drafter dependency-version: 7.1.1 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com>
1 parent 82be15d commit 524e409

16 files changed

Lines changed: 287 additions & 332 deletions

.github/release-config.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/__prepare-release.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,3 @@ jobs:
1616
contents: write
1717
pull-requests: write
1818
id-token: write # Needed for getting local workflow actions
19-
with:
20-
github-app-id: ${{ vars.CI_BOT_APP_ID }}
21-
secrets:
22-
github-app-key: ${{ secrets.CI_BOT_APP_PRIVATE_KEY }}

.github/workflows/__shared-ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,7 @@ jobs:
3737
needs: linter
3838
uses: ./.github/workflows/__test-action-deployment.yml
3939
secrets: inherit
40+
41+
test-action-release-get-configuration:
42+
needs: linter
43+
uses: ./.github/workflows/__test-action-release-get-configuration.yml

.github/workflows/__test-action-deployment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
deployment-id: ${{ steps.create-deployment.outputs.deployment-id }}
6060
state: "in_progress"
6161

62-
- uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
62+
- uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
6363
id: generate-token
6464
with:
6565
app-id: ${{ vars.CI_BOT_APP_ID }}
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: Internal - Tests for "release/get-configuration" action
2+
3+
on:
4+
workflow_call:
5+
6+
permissions: {}
7+
8+
jobs:
9+
tests:
10+
name: Tests for "release/get-configuration" action
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
steps:
15+
- name: Arrange - Checkout
16+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
17+
with:
18+
persist-credentials: false
19+
20+
- name: Arrange - Create repository config fixture
21+
run: |
22+
mkdir -p .github
23+
cat <<'EOF' > .github/release-config.yml
24+
---
25+
template: |
26+
$CHANGES
27+
EOF
28+
29+
- name: Act - Resolve existing repository config
30+
id: existing-config
31+
uses: ./actions/release/get-configuration
32+
33+
- name: Assert - Existing repository config
34+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
35+
env:
36+
CONFIG_PATH: ${{ steps.existing-config.outputs.config-path }}
37+
with:
38+
script: |
39+
const assert = require('node:assert');
40+
const fs = require('node:fs');
41+
const path = require('node:path');
42+
43+
const workspace = process.env.GITHUB_WORKSPACE || process.cwd();
44+
const configPath = process.env.CONFIG_PATH;
45+
46+
assert.equal(configPath, 'release-config.yml');
47+
48+
const absoluteConfigPath = path.resolve(workspace, '.github', configPath);
49+
assert.ok(fs.existsSync(absoluteConfigPath), `Expected config to exist at ${absoluteConfigPath}`);
50+
51+
- name: Act - Resolve generated temp config
52+
id: generated-config
53+
uses: ./actions/release/get-configuration
54+
with:
55+
working-directory: actions/release/get-configuration
56+
include-paths: '["actions/release/create"]'
57+
58+
- name: Assert - Generated temp config
59+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
60+
env:
61+
CONFIG_PATH: ${{ steps.generated-config.outputs.config-path }}
62+
with:
63+
script: |
64+
const assert = require('node:assert');
65+
const fs = require('node:fs');
66+
const path = require('node:path');
67+
68+
const workspace = process.env.GITHUB_WORKSPACE || process.cwd();
69+
const configPath = process.env.CONFIG_PATH;
70+
const absoluteConfigPath = path.resolve(workspace, '.github', configPath);
71+
const configContent = fs.readFileSync(absoluteConfigPath, 'utf8');
72+
73+
assert.notEqual(configPath, 'release-configs/get-configuration.yml');
74+
assert.ok(configPath.endsWith('/release-drafter/get-configuration.yml') || configPath === '../release-drafter/get-configuration.yml' || configPath.includes('/release-drafter/get-configuration.yml'));
75+
assert.ok(fs.existsSync(absoluteConfigPath), `Expected generated config to exist at ${absoluteConfigPath}`);
76+
assert.ok(configContent.includes('include-paths:'), 'Expected include-paths section in generated config');
77+
assert.ok(configContent.includes(' - "actions/release/create"'), 'Expected custom include path in generated config');
78+
assert.ok(configContent.includes(' - "actions/release/get-configuration"'), 'Expected working directory include path in generated config');
79+
assert.ok(configContent.includes('name-template: "Version get-configuration - $RESOLVED_VERSION"'), 'Expected working-directory-specific name template');
80+
assert.ok(configContent.includes('tag-prefix: "get-configuration-"'), 'Expected working-directory-specific tag prefix');

.github/workflows/clean-deploy-argocd-app-of-apps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ jobs:
108108
core.setOutput("has-changes", hasChanges);
109109
110110
# jscpd:ignore-start
111-
- uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
111+
- uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
112112
if: ${{ steps.remove-files.outputs.has-changes == 'true' && inputs.github-app-id }}
113113
id: generate-token
114114
with:

.github/workflows/clean-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ jobs:
139139
core.setOutput("owner", ownerName);
140140
}
141141
142-
- uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
142+
- uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
143143
if: ${{ inputs.github-app-id }}
144144
id: generate-token
145145
with:

.github/workflows/deploy-argocd-app-of-apps.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ jobs:
140140
core.setOutput("initiated-by", initiatedBy);
141141
142142
- id: chart-variables
143-
uses: hoverkraft-tech/ci-github-container/actions/helm/parse-chart-uri@a0bab9151cc074af9f6c8204ab42a48d2d570379 # 0.30.6
143+
uses: hoverkraft-tech/ci-github-container/actions/helm/parse-chart-uri@df8b445f6cc9661dcb282d897d7146a82e5f2960 # 0.31.0
144144
with:
145145
uri: ${{ steps.check-client-payload.outputs.chart }}
146146

@@ -221,7 +221,7 @@ jobs:
221221
initiated-by: ${{ steps.check-client-payload.outputs.initiated-by }}
222222

223223
# jscpd:ignore-start
224-
- uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
224+
- uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
225225
if: inputs.github-app-id
226226
id: generate-token
227227
with:

.github/workflows/deploy-chart.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ jobs:
241241
build-oci-images:
242242
name: Build OCI images
243243
needs: prepare-deploy
244-
uses: hoverkraft-tech/ci-github-container/.github/workflows/docker-build-images.yml@a0bab9151cc074af9f6c8204ab42a48d2d570379 # 0.30.6
244+
uses: hoverkraft-tech/ci-github-container/.github/workflows/docker-build-images.yml@df8b445f6cc9661dcb282d897d7146a82e5f2960 # 0.31.0
245245
permissions:
246246
contents: read
247247
id-token: write
@@ -355,7 +355,7 @@ jobs:
355355
core.setOutput('deploy-values', JSON.stringify(deployValues));
356356
357357
- id: release
358-
uses: hoverkraft-tech/ci-github-container/actions/helm/release-chart@a0bab9151cc074af9f6c8204ab42a48d2d570379 # 0.30.6
358+
uses: hoverkraft-tech/ci-github-container/actions/helm/release-chart@df8b445f6cc9661dcb282d897d7146a82e5f2960 # 0.31.0
359359
with:
360360
chart: ${{ inputs.chart-name }}
361361
path: ${{ inputs.chart-path }}
@@ -453,7 +453,7 @@ jobs:
453453
core.setOutput("deploy-values", JSON.stringify(deployValues));
454454
455455
# jscpd:ignore-start
456-
- uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
456+
- uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
457457
if: inputs.github-app-id
458458
id: generate-token
459459
with:

.github/workflows/finish-deploy-argocd-app-of-apps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ jobs:
144144
145145
core.setFailed(`Status "${status}" is not valid. Valid statuses are: ${JSON.stringify(statesStatuses)}`);
146146
147-
- uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
147+
- uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
148148
if: inputs.github-app-id
149149
id: generate-token
150150
with:

0 commit comments

Comments
 (0)