Skip to content

Commit

Permalink
Create reusable1.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentsimon committed Sep 22, 2022
1 parent 98a872c commit 4f13159
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/reusable1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Reusable 1
on:
workflow_call:

permissions: read-all

jobs:
args:
permissions:
token-id: write
runs-on: ubuntu-latest
steps:
- name: oidc
run: |
JWT=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=testaudience")
echo "JWT reusable 1:"
echo "$JWT"
call2:
permissions:
token-id: write
uses: laurentsimon/slsa-on-github-test/.github/workflows/reusable2.yml@main

0 comments on commit 4f13159

Please sign in to comment.