User is using a Kubernetes job in Autosys and is encountering an authorization error when attempting to access the GitHub repository.
K8s job with Github repo example
insert_job: k8s_job
job_type: K8S_JOB machine: some_agent owner: autosys permission: date_conditions: 0 condition:
k8s_connection_profile: K8S_PROFILE
k8s_security_profile: k8s@something
k8s_job_name: k8s_test_job
k8s_namespace: my_namespacce
scm_security_profile: autosys@k8s_test
k8s_delete_job_on_success: 0
status_poll_interval: 5
k8s_job_definition_uri: https\://github.example.com/raw/xxxxxxx/job_example.yaml
Workload Automation AE: 12.1 or above
Workload Automation Agent 12.1 or above
Use PAT (Personal access token) to access the repo. Store user and PAT (Personal access token) in SCM profile in autosys_secure. Next define the SCM profile in the job:
scm_security_profile: someuser@autosys