-
Notifications
You must be signed in to change notification settings - Fork 24
Add git-launcher for pinned workload provenance #97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
h4x3rotab
wants to merge
13
commits into
main
Choose a base branch
from
trusted-workload-launcher
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
82b45dc
Add trusted workload launcher example
h4x3rotab 3c44cce
trusted-workload-launcher: address PR #97 review
h4x3rotab 68cb658
trusted-workload-launcher: align reproducibility wording
h4x3rotab b0478b6
trusted-workload-launcher: default to repo-owned tee-launch.sh
h4x3rotab 331c3d0
trusted-workload-launcher: precise trust-surface wording
h4x3rotab 7304668
trusted-workload-launcher: entrypoint.sh default, dstack.sock mount,
h4x3rotab 42c97a4
ci: limit reproducible build workflow to branches
h4x3rotab c8b49a9
git-launcher: rename trusted workload launcher
h4x3rotab cab7a2f
git-launcher: remove child env file support
h4x3rotab df7060e
git-launcher: scrub checkout before launch
h4x3rotab 66c86e2
git-launcher: document workload repo requirements
h4x3rotab 67a101f
git-launcher: address review feedback
h4x3rotab 14686aa
git-launcher: default config path
h4x3rotab File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,92 @@ | ||
| name: git-launcher Release | ||
| on: | ||
| workflow_dispatch: {} | ||
| push: | ||
| tags: | ||
| - 'git-launcher-v*' | ||
|
|
||
| permissions: | ||
| contents: write | ||
| packages: write | ||
| attestations: write | ||
| id-token: write | ||
|
|
||
| jobs: | ||
| build-and-attest: | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| IMAGE_REGISTRY: docker.io | ||
| IMAGE_REPOSITORY: ${{ vars.DOCKERHUB_ORG }}/git-launcher | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Parse version from tag | ||
| run: | | ||
| VERSION=${GITHUB_REF#refs/tags/git-launcher-v} | ||
| if [ -z "${VERSION}" ]; then | ||
| echo "Unable to parse version from ref: ${GITHUB_REF}" >&2 | ||
| exit 1 | ||
| fi | ||
| echo "VERSION=${VERSION}" >> "$GITHUB_ENV" | ||
| echo "IMAGE_REFERENCE=${IMAGE_REGISTRY}/${IMAGE_REPOSITORY}:${VERSION}" >> "$GITHUB_ENV" | ||
| echo "Parsed version: ${VERSION}" | ||
|
|
||
| - name: Run launcher tests | ||
| working-directory: git-launcher | ||
| run: ./tests/run-tests.sh | ||
|
|
||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v3 | ||
|
|
||
| - name: Log in to Docker registry | ||
| uses: docker/login-action@v3 | ||
| with: | ||
| registry: ${{ env.IMAGE_REGISTRY }} | ||
| username: ${{ vars.DOCKERHUB_USERNAME }} | ||
| password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
|
||
| - name: Build and push Docker image | ||
| id: build-and-push | ||
| uses: docker/build-push-action@v5 | ||
| with: | ||
| context: git-launcher | ||
| file: git-launcher/docker/Dockerfile | ||
| push: true | ||
| tags: docker.io/${{ vars.DOCKERHUB_ORG }}/git-launcher:${{ env.VERSION }} | ||
| platforms: linux/amd64 | ||
| labels: | | ||
| org.opencontainers.image.title=git-launcher | ||
| org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }} | ||
| org.opencontainers.image.revision=${{ github.sha }} | ||
| org.opencontainers.image.version=${{ env.VERSION }} | ||
|
|
||
| - name: Generate artifact attestation | ||
| uses: actions/attest-build-provenance@v1 | ||
| with: | ||
| subject-name: docker.io/${{ vars.DOCKERHUB_ORG }}/git-launcher | ||
| subject-digest: ${{ steps.build-and-push.outputs.digest }} | ||
| push-to-registry: true | ||
|
|
||
| - name: Publish summary | ||
| env: | ||
| IMAGE_REFERENCE: ${{ env.IMAGE_REFERENCE }} | ||
| IMAGE_DIGEST: ${{ steps.build-and-push.outputs.digest }} | ||
| run: | | ||
| { | ||
| echo "## git-launcher image" | ||
| echo "" | ||
| echo "- Tag: \`${IMAGE_REFERENCE}\`" | ||
| echo "- Digest: \`${IMAGE_DIGEST}\`" | ||
| echo "- Sigstore: https://search.sigstore.dev/?hash=${IMAGE_DIGEST}" | ||
| } >> "$GITHUB_STEP_SUMMARY" | ||
|
|
||
| - name: Release | ||
| uses: softprops/action-gh-release@v1 | ||
| with: | ||
| body: | | ||
| ## git-launcher image (SHA256) | ||
|
|
||
| - Image: `${{ env.IMAGE_REFERENCE }}` | ||
| - Digest: `${{ steps.build-and-push.outputs.digest }}` | ||
| - Verification: https://search.sigstore.dev/?hash=${{ steps.build-and-push.outputs.digest }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| .git | ||
| .github | ||
| tests | ||
| examples | ||
| README.md |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.