Skip to content

Commit

Permalink
Merge pull request #4 from jumpstarter-dev/tpm-testingn-and-scheduling
Browse files Browse the repository at this point in the history
Add TPM testing steps to fedora, and scheduling.
  • Loading branch information
mangelajo authored Jan 30, 2024
2 parents 446fec2 + dc555ba commit e12a599
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- main
schedule:
- cron: "30 8 * * *"
pull_request:

permissions:
Expand Down
22 changes: 22 additions & 0 deletions fedora-rawhide/test-tpm-on-latest-raw.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,28 @@ steps:
this: "Complete!"
timeout: 500

- comment: "Verifying TPM interactions via tpm2 tools"
- send:
this:
- "tpm2_createprimary -C e -c primary.ctx\n"
- "tpm2_create -G rsa -u key.pub -r key.priv -C primary.ctx\n"
- "tpm2_load -C primary.ctx -u key.pub -r key.priv -c key.ctx\n"
- "echo my message > message.dat\n"
- "tpm2_sign -c key.ctx -g sha256 -o sig.rssa message.dat\n"
- "tpm2_verifysignature -c key.ctx -g sha256 -s sig.rssa -m message.dat\n"
- "echo result: $?\n"

- expect:
this: "value: fixedtpm|fixedparent|sensitivedataorigin|userwithauth|restricted|decrypt"
- expect:
this: "fixedtpm|fixedparent|sensitivedataorigin|userwithauth|decrypt|sign"
- expect:
this: "name: "
- expect:
this: "result: 0"
- expect:
this: "# "

cleanup:
- send:
this:
Expand Down

0 comments on commit e12a599

Please sign in to comment.