Repository navigation
chore(deps): automate screenshot evidence and update source-map-js #38
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
75fe3d6
chore(deps): bump source-map-js from 1.2.1 to 1.2.2
dependabot[bot] 861c647
Merge remote-tracking branch 'origin/main' into dependabot/npm_and_ya…
redbasi 0d58740
ci: refresh identical Dependabot screenshot evidence
redbasi 3948d47
chore(deps): refresh source-map-js screenshot provenance
redbasi cb4777c
ci: verify the triggering commit without dynamic checkout
redbasi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| name: Refresh unchanged screenshot evidence | ||
|
|
||
| on: | ||
| workflow_run: | ||
| workflows: | ||
| - CI | ||
| types: | ||
| - completed | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: screenshot-evidence-${{ github.repository }}-${{ github.event.workflow_run.head_branch }} | ||
| queue: max | ||
| cancel-in-progress: false | ||
|
|
||
| env: | ||
| LFC_NODE_VERSION: "24.19.0" | ||
|
|
||
| jobs: | ||
| promote: | ||
| name: Promote identical Dependabot screenshot evidence | ||
| if: >- | ||
| ${{ | ||
| github.event.workflow_run.event == 'pull_request' && | ||
| github.event.workflow_run.conclusion != 'cancelled' && | ||
| github.event.workflow_run.head_repository.full_name == github.repository | ||
| }} | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 10 | ||
|
|
||
| permissions: | ||
| contents: write | ||
| pull-requests: read | ||
| actions: write | ||
|
|
||
| env: | ||
| GITHUB_TOKEN: ${{ github.token }} | ||
| LFC_UPSTREAM_RUN_ID: ${{ github.event.workflow_run.id }} | ||
| LFC_UPSTREAM_RUN_ATTEMPT: ${{ github.event.workflow_run.run_attempt }} | ||
| LFC_UPSTREAM_HEAD_SHA: ${{ github.event.workflow_run.head_sha }} | ||
| LFC_CANDIDATE_DIRECTORY: ${{ runner.temp }}/screenshot-candidate | ||
|
|
||
| steps: | ||
| - name: Check out trusted promotion code without persisted credentials | ||
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
| with: | ||
| persist-credentials: false | ||
| ref: ${{ github.sha }} | ||
|
|
||
| - name: Set up exact Node | ||
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | ||
| with: | ||
| node-version: ${{ env.LFC_NODE_VERSION }} | ||
| package-manager-cache: false | ||
|
|
||
| - name: Validate the originating run and dependency pull request | ||
| id: context | ||
| run: node scripts/screenshot-automation.mjs promotion-context | ||
|
|
||
| - name: Download the validated candidate artifact | ||
| if: ${{ steps.context.outputs.eligible == 'true' }} | ||
| uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 | ||
| with: | ||
| github-token: ${{ github.token }} | ||
| repository: ${{ github.repository }} | ||
| run-id: ${{ github.event.workflow_run.id }} | ||
| artifact-ids: ${{ steps.context.outputs.artifact-id }} | ||
| merge-multiple: true | ||
| path: ${{ runner.temp }}/screenshot-candidate | ||
|
|
||
| - name: Refresh identical evidence and verify the new exact head | ||
| if: ${{ steps.context.outputs.eligible == 'true' }} | ||
| run: node scripts/screenshot-automation.mjs promote |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.