Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
f0ac7aaa
Unverified
Commit
f0ac7aaa
authored
Feb 25, 2025
by
Yih-Dar
Committed by
GitHub
Feb 25, 2025
Browse files
Security fix (#10905)
fix Co-authored-by:
ydshieh
<
ydshieh@users.noreply.github.com
>
parent
613e77f8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
.github/workflows/pr_style_bot.yml
.github/workflows/pr_style_bot.yml
+6
-6
No files found.
.github/workflows/pr_style_bot.yml
View file @
f0ac7aaa
...
...
@@ -53,9 +53,9 @@ jobs:
HEADREF
:
${{ steps.pr_info.outputs.headRef }}
PRNUMBER
:
${{ steps.pr_info.outputs.prNumber }}
run
:
|
echo "PR number: $
{{ env.
PRNUMBER
}}
"
echo "Head Ref: $
{{ env.
HEADREF
}}
"
echo "Head Repo Full Name: $
{{ env.
HEADREPOFULLNAME
}}
"
echo "PR number: $PRNUMBER"
echo "Head Ref: $HEADREF"
echo "Head Repo Full Name: $HEADREPOFULLNAME"
-
name
:
Set up Python
uses
:
actions/setup-python@v4
...
...
@@ -89,20 +89,20 @@ jobs:
PRNUMBER
:
${{ steps.pr_info.outputs.prNumber }}
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
run
:
|
echo "HEADREPOFULLNAME: $
{{ env.
HEADREPOFULLNAME
}}
, HEADREF: $
{{ env.
HEADREF
}}
"
echo "HEADREPOFULLNAME: $HEADREPOFULLNAME, HEADREF: $HEADREF"
# Configure git with the Actions bot user
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
# Make sure your 'origin' remote is set to the contributor's fork
git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/$
{{ env.
HEADREPOFULLNAME
}}
.git"
git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/$HEADREPOFULLNAME.git"
# If there are changes after running style/quality, commit them
if [ -n "$(git status --porcelain)" ]; then
git add .
git commit -m "Apply style fixes"
# Push to the original contributor's forked branch
git push origin HEAD:$
{{ env.
HEADREF
}}
git push origin HEAD:$HEADREF
echo "changes_pushed=true" >> $GITHUB_OUTPUT
else
echo "No changes to commit."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment