Skip to content

Commit

Permalink
CI: switch github-issues workflows to report to Kosli trail (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
JonJagger committed Feb 11, 2024
1 parent 8d8532b commit b03882f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 46 deletions.
26 changes: 2 additions & 24 deletions .github/workflows/github_issue_attestation_example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ on:
env:
KOSLI_DRY_RUN: ${{ vars.KOSLI_DRY_RUN }}
KOSLI_HOST: ${{ vars.KOSLI_HOST }} # https://app.kosli.com
KOSLI_ORG: cyber-dojo-trails
KOSLI_ORG: cyber-dojo
KOSLI_FLOW: dashboard-github-issues
KOSLI_API_TOKEN: ${{ secrets.KOSLI_API_TOKEN_TRAILS }}
KOSLI_API_TOKEN: ${{ secrets.KOSLI_API_TOKEN }}

jobs:
prepare:
Expand Down Expand Up @@ -149,25 +149,3 @@ jobs:
--name=dashboard.snyk-scan
--scan-results=snyk.json
--trail=${{ needs.prepare.outputs.kosli_trail_id }}

- name: Report deployment expectations to Kosli Trail
env:
KOSLI_ENVIRONMENT: aws-beta
run:
# This is done to ensure that artifacts from this trail
# do not make aws-beta environment non-compliant
kosli expect deployment "${IMAGE_NAME}"
--artifact-type=docker
--environment=${KOSLI_ENVIRONMENT}
--description="Deployed to ${KOSLI_ENVIRONMENT} in Github Actions pipeline"

- name: Report deployment expectations to Kosli Trail
env:
KOSLI_ENVIRONMENT: aws-prod
run:
# This is done to ensure that artifacts from this trail
# do not make aws-prod environment non-compliant
kosli expect deployment "${IMAGE_NAME}"
--artifact-type=docker
--environment=${KOSLI_ENVIRONMENT}
--description="Deployed to ${KOSLI_ENVIRONMENT} in Github Actions pipeline"
24 changes: 2 additions & 22 deletions .github/workflows/github_issue_attestation_example_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ on:
env:
KOSLI_DRY_RUN: ${{ vars.KOSLI_DRY_RUN }}
KOSLI_HOST: ${{ vars.KOSLI_HOST_STAGING }} # https://staging.app.kosli.com
KOSLI_ORG: cyber-dojo-trails
KOSLI_ORG: cyber-dojo
KOSLI_FLOW: dashboard-github-issues
KOSLI_API_TOKEN: ${{ secrets.KOSLI_API_TOKEN_TRAILS_STAGING }}
KOSLI_API_TOKEN: ${{ secrets.KOSLI_API_TOKEN_STAGING }}

jobs:
prepare:
Expand Down Expand Up @@ -149,23 +149,3 @@ jobs:
--name=dashboard.snyk-scan
--scan-results=snyk.json
--trail=${{ needs.prepare.outputs.kosli_trail_id }}

- name: Report deployment expectations to Kosli Trail
env:
KOSLI_ENVIRONMENT: aws-beta
run:
# This is done to ensure that artifacts from this trail
# do not make aws-beta environment non-compliant
kosli expect deployment "${IMAGE_NAME}"
--artifact-type=docker
--description="Deployed to ${KOSLI_ENVIRONMENT} in Github Actions pipeline"

- name: Report deployment expectations to Kosli Trail
env:
KOSLI_ENVIRONMENT: aws-prod
run:
# This is done to ensure that artifacts from this trail
# do not make aws-prod environment non-compliant
kosli expect deployment "${IMAGE_NAME}"
--artifact-type=docker
--description="Deployed to ${KOSLI_ENVIRONMENT} in Github Actions pipeline"

0 comments on commit b03882f

Please sign in to comment.