Skip to content

Commit

Permalink
chore: Pass the secrets directly by removing inherits (#98)
Browse files Browse the repository at this point in the history
Signed-off-by: gatici <[email protected]>
  • Loading branch information
gatici authored Feb 26, 2024
1 parent 71d74bc commit a1b2ba6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/issues.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ jobs:
update:
name: Update Issue
uses: canonical/sdcore-github-workflows/.github/workflows/issues.yaml@main
secrets: inherit
secrets:
JIRA_URL: ${{ secrets.JIRA_URL }}
12 changes: 8 additions & 4 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ on:
jobs:
check-libraries:
uses: canonical/sdcore-github-workflows/.github/workflows/check-libraries.yaml@main
secrets: inherit
secrets:
CHARMCRAFT_AUTH: ${{ secrets.CHARMCRAFT_AUTH }}

lint-report:
uses: canonical/sdcore-github-workflows/.github/workflows/lint-report.yaml@main
Expand Down Expand Up @@ -42,7 +43,8 @@ jobs:
with:
charm-file-name: "sdcore-upf-k8s_ubuntu-22.04-amd64.charm"
track-name: 1.3
secrets: inherit
secrets:
CHARMCRAFT_AUTH: ${{ secrets.CHARMCRAFT_AUTH }}

fiveg-n3-lib-needs-publishing:
runs-on: ubuntu-22.04
Expand All @@ -66,7 +68,8 @@ jobs:
uses: canonical/sdcore-github-workflows/.github/workflows/publish-lib.yaml@main
with:
lib-name: "charms.sdcore_upf_k8s.v0.fiveg_n3"
secrets: inherit
secrets:
CHARMCRAFT_AUTH: ${{ secrets.CHARMCRAFT_AUTH }}

fiveg-n4-lib-needs-publishing:
runs-on: ubuntu-22.04
Expand All @@ -90,4 +93,5 @@ jobs:
uses: canonical/sdcore-github-workflows/.github/workflows/publish-lib.yaml@main
with:
lib-name: "charms.sdcore_upf_k8s.v0.fiveg_n4"
secrets: inherit
secrets:
CHARMCRAFT_AUTH: ${{ secrets.CHARMCRAFT_AUTH }}
4 changes: 3 additions & 1 deletion .github/workflows/promote.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,6 @@ jobs:
promotion: ${{ github.event.inputs.promotion }}
track-name: ${{ github.event.inputs.track-name }}

secrets: inherit
secrets:
CHARMCRAFT_AUTH: ${{ secrets.CHARMCRAFT_AUTH }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a1b2ba6

Please sign in to comment.