-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[Github] Add Workflow to test Unprivileged Download Artifact Action #167434
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
boomanaiden154
merged 8 commits into
main
from
users/boomanaiden154/github-add-workflow-to-test-unprivileged-download-artifact-action
Nov 11, 2025
Merged
[Github] Add Workflow to test Unprivileged Download Artifact Action #167434
boomanaiden154
merged 8 commits into
main
from
users/boomanaiden154/github-add-workflow-to-test-unprivileged-download-artifact-action
Nov 11, 2025
Conversation
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
Created using spr 1.3.7
Member
|
@llvm/pr-subscribers-github-workflow Author: Aiden Grossman (boomanaiden154) ChangesSince this is a composite action, we do not get any testing currently Full diff: https://github.com/llvm/llvm-project/pull/167434.diff 1 Files Affected:
diff --git a/.github/workflows/test-unprivileged-download-artifact.yml b/.github/workflows/test-unprivileged-download-artifact.yml
new file mode 100644
index 0000000000000..cb37cfebf1dc9
--- /dev/null
+++ b/.github/workflows/test-unprivileged-download-artifact.yml
@@ -0,0 +1,47 @@
+name: Test Unprivileged Download Artifact Action
+
+permissions:
+ contents: read
+
+on:
+ push:
+ branches:
+ - main
+ paths:
+ - .github/workflows/test-unprivileged-download-artifact.yml
+ - '.github/workflows/unprivileged-download-artifact/**'
+ pull_request:
+ paths:
+ - .github/workflows/test-unprivileged-download-artifact.yml
+ - '.github/workflows/unprivileged-download-artifact/**'
+
+jobs:
+ test-unprivileged-download-artifact:
+ name: Test Unprivileged Download Artifact
+ if: github.repository_owner == 'llvm'
+ runs-on: ubuntu-24.04
+ steps:
+ - name: Checkout LLVM
+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
+ with:
+ sparse-checkout: |
+ .github/workflows/
+ - name: Create Test File
+ run: |
+ echo "test" > comment
+ - name: Upload Test File
+ uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
+ with:
+ name: workflow-args
+ path: |
+ comments
+ - name: Download Artifact
+ uses: ./.github/workflows/unprivileged-download-artifact
+ id: download-artifact
+ with:
+ run-id: ${{ github.run_id }}
+ artifact-name: workflow-args
+ - name: Assert That Contents are the Same
+ run: |
+ cat test
+ cat workflow-args
|
tstellar
approved these changes
Nov 11, 2025
llvm-sync bot
pushed a commit
to arm/arm-toolchain
that referenced
this pull request
Nov 11, 2025
…ct Action Since this is a composite action, we do not get any testing currently when updating the action. This patch adds a simple workflow to test the action so we can ensure we do not break it when modifying it. Reviewers: tstellar Reviewed By: tstellar Pull Request: llvm/llvm-project#167434
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Since this is a composite action, we do not get any testing currently
when updating the action. This patch adds a simple workflow to test the
action so we can ensure we do not break it when modifying it.