Skip to content

Commit

Permalink
Use ref/sha from correct repo
Browse files Browse the repository at this point in the history
  • Loading branch information
baksetercx committed Dec 13, 2024
1 parent 0d1fae9 commit eb62e47
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/example-build-deploy-dockerfile-google.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
repositories: 'core'

- name: Checkout core repository
id: checkout
uses: actions/checkout@v4
with:
repository: '3lvia/core'
Expand All @@ -61,6 +62,8 @@ jobs:
AZURE_CLIENT_ID: ${{ vars.ACR_CLIENT_ID }}
# START REMOVE FROM EXAMPLE
checkout: 'false'
trivy-results-ref: ${{ steps.checkout.outputs.ref }}
trivy-results-sha: ${{ steps.checkout.outputs.commit }}
# END REMOVE FROM EXAMPLE

deploy-dev:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/example-build-deploy-dockerfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:

- name: Checkout core repository
uses: actions/checkout@v4
id: checkout
with:
repository: '3lvia/core'
token: ${{ steps.app-token.outputs.token }}
Expand All @@ -61,6 +62,8 @@ jobs:
AZURE_CLIENT_ID: ${{ vars.ACR_CLIENT_ID }}
# START REMOVE FROM EXAMPLE
checkout: 'false'
trivy-results-ref: ${{ steps.checkout.outputs.ref }}
trivy-results-sha: ${{ steps.checkout.outputs.commit }}
# END REMOVE FROM EXAMPLE

deploy-dev:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/example-build-deploy-dotnet-google.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:

- name: Checkout core repository
uses: actions/checkout@v4
id: checkout
with:
repository: '3lvia/core'
token: ${{ steps.app-token.outputs.token }}
Expand All @@ -55,6 +56,8 @@ jobs:
language: 'csharp'
# START REMOVE FROM EXAMPLE
checkout: 'false'
ref: ${{ steps.checkout.outputs.ref }}
sha: ${{ steps.checkout.outputs.commit }}
# END REMOVE FROM EXAMPLE

unit-tests:
Expand Down Expand Up @@ -82,6 +85,7 @@ jobs:

- name: Checkout core repository
uses: actions/checkout@v4
id: checkout
with:
repository: '3lvia/core'
token: ${{ steps.app-token.outputs.token }}
Expand All @@ -93,6 +97,8 @@ jobs:
test-coverage: 'true'
# START REMOVE FROM EXAMPLE
checkout: 'false'
codeql-results-ref: ${{ steps.checkout.outputs.ref }}
codeql-results-sha: ${{ steps.checkout.outputs.commit }}
# END REMOVE FROM EXAMPLE

integration-tests:
Expand Down Expand Up @@ -177,6 +183,8 @@ jobs:
AZURE_CLIENT_ID: ${{ vars.ACR_CLIENT_ID }}
# START REMOVE FROM EXAMPLE
checkout: 'false'
trivy-results-ref: ${{ steps.checkout.outputs.ref }}
trivy-results-sha: ${{ steps.checkout.outputs.commit }}
# END REMOVE FROM EXAMPLE

deploy-dev:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/example-build-deploy-dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:

- name: Checkout core repository
uses: actions/checkout@v4
id: checkout
with:
repository: '3lvia/core'
token: ${{ steps.app-token.outputs.token }}
Expand All @@ -55,6 +56,8 @@ jobs:
language: 'csharp'
# START REMOVE FROM EXAMPLE
checkout: 'false'
codeql-results-ref: ${{ steps.checkout.outputs.ref }}
codeql-results-sha: ${{ steps.checkout.outputs.commit }}
# END REMOVE FROM EXAMPLE

unit-tests:
Expand Down Expand Up @@ -163,6 +166,7 @@ jobs:

- name: Checkout core repository
uses: actions/checkout@v4
id: checkout
with:
repository: '3lvia/core'
token: ${{ steps.app-token.outputs.token }}
Expand All @@ -177,6 +181,8 @@ jobs:
AZURE_CLIENT_ID: ${{ vars.ACR_CLIENT_ID }}
# START REMOVE FROM EXAMPLE
checkout: 'false'
trivy-results-ref: ${{ steps.checkout.outputs.ref }}
trivy-results-sha: ${{ steps.checkout.outputs.commit }}
# END REMOVE FROM EXAMPLE

deploy-dev:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/example-build-deploy-go-google.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:

- name: Checkout core repository
uses: actions/checkout@v4
id: checkout
with:
repository: '3lvia/core'
token: ${{ steps.app-token.outputs.token }}
Expand All @@ -55,6 +56,8 @@ jobs:
language: 'go'
# START REMOVE FROM EXAMPLE
checkout: 'false'
codeql-results-ref: ${{ steps.checkout.outputs.ref }}
codeql-results-sha: ${{ steps.checkout.outputs.commit }}
# END REMOVE FROM EXAMPLE

build-scan:
Expand Down Expand Up @@ -84,6 +87,7 @@ jobs:

- name: Checkout core repository
uses: actions/checkout@v4
id: checkout
with:
repository: '3lvia/core'
token: ${{ steps.app-token.outputs.token }}
Expand All @@ -98,6 +102,8 @@ jobs:
AZURE_CLIENT_ID: ${{ vars.ACR_CLIENT_ID }}
# START REMOVE FROM EXAMPLE
checkout: 'false'
trivy-results-ref: ${{ steps.checkout.outputs.ref }}
trivy-results-sha: ${{ steps.checkout.outputs.commit }}
# END REMOVE FROM EXAMPLE

deploy-dev:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/example-build-deploy-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:

- name: Checkout core repository
uses: actions/checkout@v4
id: checkout
with:
repository: '3lvia/core'
token: ${{ steps.app-token.outputs.token }}
Expand All @@ -55,6 +56,8 @@ jobs:
language: 'go'
# START REMOVE FROM EXAMPLE
checkout: 'false'
codeql-results-ref: ${{ steps.checkout.outputs.ref }}
codeql-results-sha: ${{ steps.checkout.outputs.commit }}
# END REMOVE FROM EXAMPLE

build-scan:
Expand Down Expand Up @@ -84,6 +87,7 @@ jobs:

- name: Checkout core repository
uses: actions/checkout@v4
id: checkout
with:
repository: '3lvia/core'
token: ${{ steps.app-token.outputs.token }}
Expand All @@ -98,6 +102,8 @@ jobs:
AZURE_CLIENT_ID: ${{ vars.ACR_CLIENT_ID }}
# START REMOVE FROM EXAMPLE
checkout: 'false'
trivy-results-ref: ${{ steps.checkout.outputs.ref }}
trivy-results-sha: ${{ steps.checkout.outputs.commit }}
# END REMOVE FROM EXAMPLE

deploy-dev:
Expand Down

0 comments on commit eb62e47

Please sign in to comment.