From d191b9acd96487ce8355bdbdca9d850b914de6bb Mon Sep 17 00:00:00 2001 From: krisio Date: Mon, 1 Dec 2025 15:51:11 +0200 Subject: [PATCH 01/11] Create newFile --- newFile | 1 + 1 file changed, 1 insertion(+) create mode 100644 newFile diff --git a/newFile b/newFile new file mode 100644 index 0000000000..13f0f18e38 --- /dev/null +++ b/newFile @@ -0,0 +1 @@ +test if new file gets in From eab5fed348d96d27aa042f7bcdda6ea1efb764fe Mon Sep 17 00:00:00 2001 From: krisio Date: Mon, 1 Dec 2025 15:52:16 +0200 Subject: [PATCH 02/11] Update newFile --- newFile | 1 + 1 file changed, 1 insertion(+) diff --git a/newFile b/newFile index 13f0f18e38..bc8811f0b0 100644 --- a/newFile +++ b/newFile @@ -1 +1,2 @@ test if new file gets in +asd asda asdas asd asd as From 1f9ee33620cdba47b2fd3f75000de40accc489dc Mon Sep 17 00:00:00 2001 From: krisio Date: Mon, 1 Dec 2025 16:02:58 +0200 Subject: [PATCH 03/11] Create blank.yml --- .github/workflows/blank.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/blank.yml diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml new file mode 100644 index 0000000000..01502b13e1 --- /dev/null +++ b/.github/workflows/blank.yml @@ -0,0 +1,36 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the "main" branch + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v4 + + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! + + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. From 1e1d0191c25994f7ab39e5cdb481f672ecc21a8b Mon Sep 17 00:00:00 2001 From: krisio Date: Mon, 1 Dec 2025 16:17:17 +0200 Subject: [PATCH 04/11] Create greetings.yml --- .github/workflows/greetings.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/greetings.yml diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml new file mode 100644 index 0000000000..46774343e3 --- /dev/null +++ b/.github/workflows/greetings.yml @@ -0,0 +1,16 @@ +name: Greetings + +on: [pull_request_target, issues] + +jobs: + greeting: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/first-interaction@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + issue-message: "Message that will be displayed on users' first issue" + pr-message: "Message that will be displayed on users' first pull request" From d7d8316cf98c3c5793bbaca2fd834b4f824ac8d2 Mon Sep 17 00:00:00 2001 From: krisio Date: Mon, 1 Dec 2025 16:40:22 +0200 Subject: [PATCH 05/11] Update blank.yml --- .github/workflows/blank.yml | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 01502b13e1..4a052bb9ee 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -34,3 +34,41 @@ jobs: run: | echo Add other actions to build, echo test, and deploy your project. + # jobs that must complete successfully before this job will run + needs: build + # type of machine to run the job on + runs-on: ubuntu-latest + name: 'ServiceNow DevOps Change' + steps: + - name: ServiceNow Change + # For custom action based change, remove or disable the 'deployment-gate' configuration and the 'deploy' step. Ensure to update to the latest version of the custom action, for e.g. ServiceNow/servicenow-devops-change@v5.1.0 + uses: ServiceNow/servicenow-devops-change@VERSION + with: + # Devops Integration Token + devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} + # ServiceNow Instance URL + instance-url: ${{ secrets.SN_INSTANCE_URL }} + # Orchestration Tool Id + tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} + # GitHub Context + context-github: ${{ toJSON(github) }} + # Display Name of the Job + job-name: 'ServiceNow DevOps Change' + # change-request: snDevOpsChange + # Unsupported fields are: risk, impact, and risk_impact_analysis + change-request: '{"attributes":{"requested_by":{"name": "Test User"},"assignment_group":{"name": "Change Approval Team"},"priority": "2","comments": "This is a sample pipeline script to be added in your change step","work_notes": "Update this to work_notes","start_date": "2023-09-07 11:59:59","end_date": "2023-09-09 11:59:59"}}' + # You can specify the requested_by attribute either with name or sys_id. Example: "requested_by":{"name": "Test User"} or "requested_by": "62826bf03710200044e0bfc8bcbe5df1" + # You can specify the assignment_group attribute either with name or sys_id. Example: "assignment_group":{"name": "Change Approval Team"} or "assignment_group": "5f721d93c0a8010e015533746de18bf9" + # start_date: This is the planned start date + # end_date: This is the planned end date + # For deployment gate based change, uncomment the 'deployment-gate' configuration and the 'deploy' step + # deployment-gate: '{"environment": "deploy-gates-demo", "jobName": "Deploy"}' + + #deploy: + # name: 'Deploy' + # needs: ServiceNowDevOpsChange + # runs-on: ubuntu-latest + # environment: deploy-gates-demo + # steps: + # - name: Run deployment scripts + # run: echo Completed Deployment From 414421b3251d38af4ecbb547e61193be5690e4fb Mon Sep 17 00:00:00 2001 From: krisio Date: Mon, 1 Dec 2025 16:41:56 +0200 Subject: [PATCH 06/11] Update blank.yml --- .github/workflows/blank.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 4a052bb9ee..cc447ced14 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -37,7 +37,7 @@ jobs: # jobs that must complete successfully before this job will run needs: build # type of machine to run the job on - runs-on: ubuntu-latest + # runs-on: ubuntu-latest name: 'ServiceNow DevOps Change' steps: - name: ServiceNow Change From 44c56af18611a549a4286272aa557f6714af7423 Mon Sep 17 00:00:00 2001 From: krisio Date: Mon, 1 Dec 2025 16:44:12 +0200 Subject: [PATCH 07/11] Update blank.yml --- .github/workflows/blank.yml | 67 ++++++++++--------------------------- 1 file changed, 18 insertions(+), 49 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index cc447ced14..73def0ba28 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -1,74 +1,43 @@ -# This is a basic workflow to help you get started with Actions - name: CI -# Controls when the workflow will run on: - # Triggers the workflow on push or pull request events but only for the "main" branch push: branches: [ "main" ] pull_request: branches: [ "main" ] - - # Allows you to run this workflow manually from the Actions tab workflow_dispatch: -# A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - # This workflow contains a single job called "build" + build: - # The type of runner that the job will run on runs-on: ubuntu-latest - - # Steps represent a sequence of tasks that will be executed as part of the job steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v4 - - # Runs a single command using the runners shell - name: Run a one-line script - run: echo Hello, world! - - # Runs a set of commands using the runners shell + run: echo "Hello, world!" - name: Run a multi-line script run: | - echo Add other actions to build, - echo test, and deploy your project. - # jobs that must complete successfully before this job will run - needs: build - # type of machine to run the job on - # runs-on: ubuntu-latest - name: 'ServiceNow DevOps Change' + echo "Add other actions to build," + echo "test, and deploy your project." + + ServiceNowDevOpsChange: + needs: build # waits for build job to finish + runs-on: ubuntu-latest + name: "ServiceNow DevOps Change" steps: - name: ServiceNow Change - # For custom action based change, remove or disable the 'deployment-gate' configuration and the 'deploy' step. Ensure to update to the latest version of the custom action, for e.g. ServiceNow/servicenow-devops-change@v5.1.0 uses: ServiceNow/servicenow-devops-change@VERSION with: - # Devops Integration Token devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} - # ServiceNow Instance URL instance-url: ${{ secrets.SN_INSTANCE_URL }} - # Orchestration Tool Id tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} - # GitHub Context context-github: ${{ toJSON(github) }} - # Display Name of the Job - job-name: 'ServiceNow DevOps Change' - # change-request: snDevOpsChange - # Unsupported fields are: risk, impact, and risk_impact_analysis - change-request: '{"attributes":{"requested_by":{"name": "Test User"},"assignment_group":{"name": "Change Approval Team"},"priority": "2","comments": "This is a sample pipeline script to be added in your change step","work_notes": "Update this to work_notes","start_date": "2023-09-07 11:59:59","end_date": "2023-09-09 11:59:59"}}' - # You can specify the requested_by attribute either with name or sys_id. Example: "requested_by":{"name": "Test User"} or "requested_by": "62826bf03710200044e0bfc8bcbe5df1" - # You can specify the assignment_group attribute either with name or sys_id. Example: "assignment_group":{"name": "Change Approval Team"} or "assignment_group": "5f721d93c0a8010e015533746de18bf9" - # start_date: This is the planned start date - # end_date: This is the planned end date - # For deployment gate based change, uncomment the 'deployment-gate' configuration and the 'deploy' step - # deployment-gate: '{"environment": "deploy-gates-demo", "jobName": "Deploy"}' - - #deploy: - # name: 'Deploy' - # needs: ServiceNowDevOpsChange - # runs-on: ubuntu-latest - # environment: deploy-gates-demo - # steps: - # - name: Run deployment scripts - # run: echo Completed Deployment + job-name: "ServiceNow DevOps Change" + change-request: > + {"attributes":{"requested_by":{"name":"Test User"}, + "assignment_group":{"name":"Change Approval Team"}, + "priority":"2", + "comments":"This is a sample pipeline script to be added in your change step", + "work_notes":"Update this to work_notes", + "start_date":"2023-09-07 11:59:59", + "end_date":"2023-09-09 11:59:59"}} From 6dc818be37e543936b70d425f4b1f9356beb39b3 Mon Sep 17 00:00:00 2001 From: krisio Date: Mon, 1 Dec 2025 16:48:06 +0200 Subject: [PATCH 08/11] Update blank.yml --- .github/workflows/blank.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 73def0ba28..d9851a3970 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -26,7 +26,7 @@ jobs: name: "ServiceNow DevOps Change" steps: - name: ServiceNow Change - uses: ServiceNow/servicenow-devops-change@VERSION + uses: ServiceNow/servicenow-devops-change@v1 with: devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} instance-url: ${{ secrets.SN_INSTANCE_URL }} From fe7fdac38a498d71076a231d41a51a4ef726a5e6 Mon Sep 17 00:00:00 2001 From: krisio Date: Mon, 1 Dec 2025 16:56:27 +0200 Subject: [PATCH 09/11] Update blank.yml --- .github/workflows/blank.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index d9851a3970..9e93d0d3a7 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -26,7 +26,7 @@ jobs: name: "ServiceNow DevOps Change" steps: - name: ServiceNow Change - uses: ServiceNow/servicenow-devops-change@v1 + uses: ServiceNow/servicenow-devops-change@v6.1.0 with: devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} instance-url: ${{ secrets.SN_INSTANCE_URL }} From 88663c76c6f140a2d20e0fab775e2447391b3081 Mon Sep 17 00:00:00 2001 From: krisio Date: Mon, 1 Dec 2025 17:06:18 +0200 Subject: [PATCH 10/11] Update blank.yml --- .github/workflows/blank.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 9e93d0d3a7..dbf7990a85 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -28,9 +28,9 @@ jobs: - name: ServiceNow Change uses: ServiceNow/servicenow-devops-change@v6.1.0 with: - devops-integration-token: ${{ secrets.SN_DEVOPS_TOKEN }} + devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} + devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} instance-url: ${{ secrets.SN_INSTANCE_URL }} - tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} context-github: ${{ toJSON(github) }} job-name: "ServiceNow DevOps Change" change-request: > From def1cdfe57de7c05fd3468bd4247c7b1fc9435aa Mon Sep 17 00:00:00 2001 From: krisio Date: Mon, 1 Dec 2025 17:30:51 +0200 Subject: [PATCH 11/11] Update blank.yml --- .github/workflows/blank.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index dbf7990a85..afa4066ebd 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -30,6 +30,7 @@ jobs: with: devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }} devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }} + tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }} instance-url: ${{ secrets.SN_INSTANCE_URL }} context-github: ${{ toJSON(github) }} job-name: "ServiceNow DevOps Change"