mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fixed vulnerability in Github Action that updates user-agent for DNS.
This commit is contained in:
parent
51cdb70461
commit
e283b4895b
1 changed files with 4 additions and 2 deletions
6
.github/workflows/user_agent_updater.yml
vendored
6
.github/workflows/user_agent_updater.yml
vendored
|
@ -44,12 +44,14 @@ jobs:
|
||||||
git remote set-url origin $url
|
git remote set-url origin $url
|
||||||
|
|
||||||
- name: Delete branch.
|
- name: Delete branch.
|
||||||
|
env:
|
||||||
|
ref: ${{ github.event.pull_request.head.ref }}
|
||||||
if: |
|
if: |
|
||||||
env.isPull == '1'
|
env.isPull == '1'
|
||||||
&& github.event.action == 'closed'
|
&& github.event.action == 'closed'
|
||||||
&& startsWith(github.head_ref, env.headBranchPrefix)
|
&& startsWith(env.ref, env.headBranchPrefix)
|
||||||
run: |
|
run: |
|
||||||
git push origin --delete ${{ github.head_ref }}
|
git push origin --delete $ref
|
||||||
|
|
||||||
- name: Write a new version of Google Chrome to the user-agent for DNS.
|
- name: Write a new version of Google Chrome to the user-agent for DNS.
|
||||||
if: env.isPull == '0'
|
if: env.isPull == '0'
|
||||||
|
|
Loading…
Add table
Reference in a new issue