Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/trigger_jenkins.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Trigger Jenkins CI
on:
- push
- pull_request
jobs:
# This workflow contains a single job called "trigger_jenkins"
trigger_jenkins:
# The type of runner that the job will run on
#runs-on: jenkins-trigger
runs-on: self-hosted
env:
REPO_NAME: ${{ github.event.repository.name }}
ORG_NAME: ${{ github.event.organization.login }}
JENKINS_ROOT: ${{ secrets.JENKINS_CONTROLLER_URL }}job/${{ secrets.JENKINS_TRIGGER_ROOT_FOLDER }}/job/${{ secrets.JENKINS_TRIGGER_ORG_FOLDER }}/job/
steps:
- name: trigger single Job

Check notice on line 16 in .github/workflows/trigger_jenkins.yaml

View check run for this annotation

DynamoDS Chorus / security/checkov

CKV_GHA_3

Suspicious use of curl with secrets
run: >
curl -X POST -u "${{ secrets.JENKINS_TRIGGER_USER }}:${{ secrets.JENKINS_TRIGGER_TOKEN }}"
${{ env.JENKINS_ROOT}}/${{ env.ORG_NAME }}/job/${{ env.REPO_NAME }}/build\?delay=\0
Loading