Skip to content

Commit

Permalink
run cargo-deny on self-hosted runners with build-tools-image
Browse files Browse the repository at this point in the history
  • Loading branch information
jcgruenhage committed Jan 23, 2025
1 parent 2a9bfad commit 72f54d9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ jobs:
needs: [ check-permissions, files-changed, build-build-tools-image ]
if: ${{ needs.files-changed.outputs.check-rust-dependencies == 'true' }}
uses: ./.github/workflows/cargo-deny.yml
with:
build-tools-image: ${{ needs.build-build-tools-image.outputs.image }}-bookworm
secrets: inherit

build-and-test-locally:
Expand Down
15 changes: 14 additions & 1 deletion .github/workflows/cargo-deny.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: cargo deny checks

on:
workflow_call:
inputs:
build-tools-image:
required: false
type: string
schedule:
- cron: '0 0 * * *'

Expand All @@ -17,7 +21,16 @@ jobs:
|| format('["{0}"]', github.sha)
)
}}
runs-on: ubuntu-22.04
runs-on: [self-hosted, small]

container:
image: ${{ inputs.build-tools-image || 'neondatabase/build-tools:pinned' }}
credentials:
username: ${{ secrets.NEON_DOCKERHUB_USERNAME }}
password: ${{ secrets.NEON_DOCKERHUB_PASSWORD }}
options: --init

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit 72f54d9

Please sign in to comment.