Skip to content

test presubmit #281

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

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: detect env
on:
workflow_dispatch:

permissions: read-all

jobs:
#foo
detect:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
actions: read
actions: write
steps:
# - uses: actions/checkout@v3
# with:
# repository: slsa-framework/slsa-github-generator
# ref: 8d0cdc6af66f20f62b5a58df634077cb421b68fd
- id: detectenv
# uses: slsa-framework/slsa-github-generator/.github/actions/detect-workflow@8d0cdc6af66f20f62b5a58df634077cb421b68fd
uses: slsa-framework/slsa-github-generator/.github/actions/detect-workflow@aec5cd1e20507a6f1b5d8e82a8f62c3e2ca9b9f9
- id: print
shell: bash
env:
REPO: "${{ steps.detectenv.outputs.repository }}"
REF: "${{ steps.detectenv.outputs.ref }}"
run: |
echo $REPO
echo $REF