-
Notifications
You must be signed in to change notification settings - Fork 6
Expose secret within the reusable workflow in order to use repos secrets #132
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,6 +16,9 @@ name: Go tests | |
|
|
||
| on: | ||
| workflow_call: | ||
| secrets: | ||
| CODECOV_TOKEN: | ||
| required: false | ||
|
|
||
| inputs: | ||
| coverage: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,4 +5,6 @@ on: | |
|
|
||
| jobs: | ||
| gotests: | ||
| uses: RedHatInsights/processing-tools/.github/workflows/gotests.yaml@v0.4.1 | ||
| uses: RedHatInsights/processing-tools/.github/workflows/gotests.yaml@v0.4.2 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Verify whether workflow references are pinned to immutable SHAs or mutable refs.
# Expected: no `uses:` entries ending with `@v`* / `@main` / `@master` for reusable workflows.
rg -nP --type=yaml '^\s*uses:\s*[^#\s]+/(?:\.github/workflows/[^@\s]+)@([A-Za-z0-9._-]+)\s*$' .github workflows_examples -C2Repository: RedHatInsights/processing-tools Length of output: 1688 Pin reusable workflow to an immutable commit SHA, not a mutable tag. Using 🔧 Proposed change- uses: RedHatInsights/processing-tools/.github/workflows/gotests.yaml@v0.4.2
+ uses: RedHatInsights/processing-tools/.github/workflows/gotests.yaml@<full_commit_sha>🤖 Prompt for AI Agents |
||
| secrets: | ||
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
Uh oh!
There was an error while loading. Please reload this page.