Skip to content

Commit

Permalink
Internal: Unified SSH keys/tokens used on CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
pomek committed Sep 4, 2023
1 parent 372e17a commit e0bc35d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ commands:
steps:
- add_ssh_keys:
fingerprints:
- "2a:97:94:d9:ae:a0:8d:bd:c2:2a:2d:cf:8d:d1:94:bd"
- "a0:41:a2:56:c8:7d:3f:29:41:d1:87:92:fd:50:2b:6b"

jobs:
generate_configuration:
Expand Down
2 changes: 1 addition & 1 deletion .circleci/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ commands:
steps:
- add_ssh_keys:
fingerprints:
- "2a:97:94:d9:ae:a0:8d:bd:c2:2a:2d:cf:8d:d1:94:bd"
- "a0:41:a2:56:c8:7d:3f:29:41:d1:87:92:fd:50:2b:6b"

bootstrap_repository_command:
description: "Bootstrap the CKEditor 5 project"
Expand Down
15 changes: 8 additions & 7 deletions scripts/ci/trigger-ckeditor5-continuous-integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ const minimist = require( 'minimist' );
const fetch = require( 'node-fetch' );

const {
CKE5_CIRCLE_TOKEN,
INTEGRATION_CI_ORGANIZATION,
INTEGRATION_CI_REPOSITORY,
INTEGRATION_CI_CIRCLE_CI_TOKEN
INTEGRATION_CI_REPOSITORY
} = process.env;

main()
Expand All @@ -26,10 +26,11 @@ main()
/**
* This script triggers Travis that verifies whether projects that depend on CKEditor 5 build correctly.
*
* In order to integrate the action in a new repository, you need add a few secrets in the new repository.
* - INTEGRATION_CI_ORGANIZATION - a name of the organization that keeps the repository where the build should be triggered
* - INTEGRATION_CI_REPOSITORY - a name of the repository where the build should be triggered
* - INTEGRATION_CI_TRAVIS_TOKEN - an authorization token generated by Travis CLI: `travis --pro token`
* In order to integrate the action in a new repository, you need add a few secrets in the new repository:
*
* - INTEGRATION_CI_ORGANIZATION - a name of the organization that keeps the repository where the build should be triggered/
* - INTEGRATION_CI_REPOSITORY - a name of the repository where the build should be triggered.
* - CKE5_CIRCLE_TOKEN - an authorization token to talk to CircleCI REST API.
*
* @returns {Object} CircleCI API response as JSON.
*/
Expand All @@ -43,7 +44,7 @@ function main() {
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Circle-Token': INTEGRATION_CI_CIRCLE_CI_TOKEN
'Circle-Token': CKE5_CIRCLE_TOKEN
},
body: JSON.stringify( {
branch: 'master',
Expand Down

0 comments on commit e0bc35d

Please sign in to comment.