-
Notifications
You must be signed in to change notification settings - Fork 0
ci(workflows): use central reusable dependency-review.yml #330
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
base: develop
Are you sure you want to change the base?
Changes from all commits
c2b0ad4
65efdf7
6d8ceab
4576f86
09e7e3f
bfcc883
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 |
|---|---|---|
|
|
@@ -3,28 +3,24 @@ name: Dependency Review | |
| on: | ||
| pull_request: | ||
|
|
||
| permissions: | ||
| contents: read | ||
| pull-requests: read | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| dependency-review: | ||
| if: ${{ github.event.repository.private == false }} | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Dependency Review | ||
| uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v5.0.0 | ||
| with: | ||
| fail-on-severity: high | ||
|
|
||
| dependency-review-private-note: | ||
| if: ${{ github.event.repository.private == true }} | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Document unavailability on private repositories | ||
| run: | | ||
| echo "Dependency Review Action requires Dependency Graph + GitHub Advanced Security on private repositories." | ||
| echo "Using Dependabot + Scorecard workflows as baseline coverage until GHAS is enabled." | ||
| uses: ContextualWisdomLab/.github/.github/workflows/dependency-review.yml@5f8e5b2a79e709c4ab1a4179a605d34c458b13a1 | ||
|
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. π Security & Privacy | π Major | ποΈ Heavy lift π§© Analysis chainπ Script executed: #!/bin/bash
set -e
printf '%s\n' '--- applicable repository guidance ---'
find /tmp/coderabbit-repo-knowledge/contextualwisdomlab-mightyetl-025f235e/contextualwisdomlab-mightyetl-025f235e \
-type f -name '*.md' -print 2>/dev/null | sort | while read -r f; do
case "$f" in
*github*|*workflow*|*security*|*automation*) echo "### $f"; head -80 "$f";;
esac
done
printf '%s\n' '--- caller workflow ---'
cat -n .github/workflows/dependency-review.yml
printf '%s\n' '--- pinned central workflow ---'
curl -fsSL 'https://raw.githubusercontent.com/ContextualWisdomLab/.github/5f8e5b2a79e709c4ab1a4179a605d34c458b13a1/.github/workflows/dependency-review.yml' | cat -n
printf '%s\n' '--- pinned SHA commit identity ---'
curl -fsSL 'https://api.github.com/repos/ContextualWisdomLab/.github/commits/5f8e5b2a79e709c4ab1a4179a605d34c458b13a1' |
jq -r '[.sha, .commit.message] | `@tsv`'Repository: ContextualWisdomLab/mightyETL Length of output: 10812 π Script executed: #!/bin/bash
set -e
api='https://api.github.com/repos/ContextualWisdomLab/.github'
printf '%s\n' '--- issue 1725 ---'
curl -fsSL "$api/issues/1725" |
jq '{number,title,state,html_url,pull_request:.pull_request}'
printf '%s\n' '--- issue 1725 timeline cross-references ---'
curl -fsSL "$api/issues/1725/timeline?per_page=100" |
jq -r '.[] | select(.event=="cross-referenced" or .event=="connected") |
[.event, (.source.issue.number // ""), (.source.issue.title // ""), (.source.issue.pull_request.url // "")] | `@tsv`'
printf '%s\n' '--- issue 1725 comments mentioning merge or SHA ---'
curl -fsSL "$api/issues/1725/comments?per_page=100" |
jq -r '.[] | [.user.login, .body] | `@tsv`' |
grep -Ei 'merge|sha|commit|merged|fail.closed|fail closed' || true
printf '%s\n' '--- current central workflow on main ---'
curl -fsSL "$api/contents/.github/workflows/dependency-review.yml?ref=main" |
jq -r '.download_url' |
xargs -r curl -fsSL |
nl -ba |
sed -n '107,165p'Repository: ContextualWisdomLab/mightyETL Length of output: 6704 π Script executed: #!/bin/bash
set -e
api='https://api.github.com/repos/ContextualWisdomLab/.github'
printf '%s\n' '--- PR 1725 metadata ---'
curl -fsSL "$api/pulls/1725" |
jq '{number,state,draft,merged,merged_at,merge_commit_sha,head:.head,base:.base}'
printf '%s\n' '--- current main workflow relevant lines ---'
curl -fsSL "$api/contents/.github/workflows/dependency-review.yml?ref=main" |
jq -r '.content' | base64 -d | sed -n '105,165p'
printf '%s\n' '--- PR 1725 head workflow relevant lines ---'
head_sha="$(curl -fsSL "$api/pulls/1725" | jq -r '.head.sha')"
curl -fsSL "$api/contents/.github/workflows/dependency-review.yml?ref=$head_sha" |
jq -r '.content' | base64 -d | sed -n '105,165p'
printf '%s\n' '--- commit existence checks ---'
for sha in "$head_sha" "$(curl -fsSL "$api/pulls/1725" | jq -r '.merge_commit_sha')"; do
[ "$sha" != "null" ] || continue
curl -fsSL "$api/commits/$sha" | jq -r '[.sha, .commit.message] | `@tsv`'
doneRepository: ContextualWisdomLab/mightyETL Length of output: 21544 Security Misconfiguration (CWE-636) Reachability: External Β· Exploitability: Moderate μμ λ μ€μ μν¬νλ‘κ° λ³ν©λ ν ν΄λΉ 컀λ°μΌλ‘ λ€μ κ³ μ νμΈμ. νμ¬ κ³ μ λ μν¬νλ‘λ Dependency Graph λΉκ΅ APIμ π€ Prompt for AI AgentsSource: MCP tools |
||
| with: | ||
| fail_on_severity: high | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| # The central workflow's default comment_summary_in_pr ("on-failure") | ||
| # forwards to dependency-review-action's comment-summary-in-pr, which | ||
| # needs pull-requests: write to post a PR comment. This caller only | ||
| # grants pull-requests: read, so an actual failure would try to comment | ||
| # without permission (CodeRabbit). No PR summary comment is needed here | ||
| # -- the job's own pass/fail status is the signal -- so this opts out | ||
| # explicitly rather than escalating to write. | ||
| comment_summary_in_pr: never | ||
Uh oh!
There was an error while loading. Please reload this page.