Skip to content

Commit

Permalink
fix CI try to pass by secrets (#937)
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Yuan <[email protected]>
  • Loading branch information
SamYuan1990 authored Sep 18, 2023
1 parent e75ba5d commit 039eccd
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:
# daily image build
image:
uses: ./.github/workflows/image.yml
secrets:
username: ${{ secrets.BOT_NAME }}
password: ${{ secrets.BOT_TOKEN }}
# daily openSSF scan
scorecard:
uses: ./.github/workflows/scorecard.yml
5 changes: 5 additions & 0 deletions .github/workflows/image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: image

on:
workflow_call:
secrets:
username:
required: true
password:
required: true

jobs:
image_build:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/integration_test_libbpf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: save Kepler image as artifact
uses: actions/upload-artifact@v3
with:
name: kepler
name: keplerlibbpf
path: ${{env.OUTPUT_DIR}}${{env.FILE_NAME}}
retention-days: 1
# ref https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
Expand All @@ -54,7 +54,7 @@ jobs:
- name: download Kepler image artifact
uses: actions/download-artifact@v3
with:
name: kepler
name: keplerlibbpf

- name: build manifest
run: make build-manifest OPTS="CI_DEPLOY"
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,14 @@ jobs:
# for each PR merge, trigger image build
image:
uses: ./.github/workflows/image.yml
secrets:
username: ${{ secrets.BOT_NAME }}
password: ${{ secrets.BOT_TOKEN }}
# for each PR merge, unit test for test coverage
unit_test:
uses: ./.github/workflows/unit_test.yml
secrets:
GH_BOT_SECRET: ${{ secrets.GH_BOT_SECRET }}
# for each PR merge, openSSF scan
scorecard:
uses: ./.github/workflows/scorecard.yml
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Unit test

on:
workflow_call:
secrets:
GH_BOT_SECRET:

permissions:
pull-requests: write
Expand Down

0 comments on commit 039eccd

Please sign in to comment.