Skip to content

Commit

Permalink
Merge branch 'deriv-com:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-deriv authored Jan 24, 2025
2 parents f9465c0 + 47017cf commit c609f67
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 10 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,16 @@ jobs:
timeout-minutes: 5
permissions:
pull-requests: read
contents: read
outputs:
is-fork: ${{ steps.check.outputs.is-fork }}
is-authorized: ${{ steps.check.outputs.is-authorized }}
steps:
- name: Verify user
uses: "deriv-com/shared-actions/.github/actions/verify_user_in_organization@v1"
with:
username: ${{github.event.pull_request.user.login}}
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Check PR source and permissions
id: check
uses: actions/github-script@v7
Expand Down Expand Up @@ -75,11 +81,6 @@ jobs:
pull-requests: write
contents: read
steps:
- name: Verify user
uses: "deriv-com/shared-actions/.github/actions/verify_user_in_organization@v1"
with:
username: ${{github.event.pull_request.user.login}}
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Checkout repository
uses: actions/checkout@v4
with:
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,14 @@ jobs:
timeout-minutes: 5
outputs:
secrets-valid: ${{ steps.check-secrets.outputs.valid }}
permissions:
contents: read
steps:
- name: Verify user
uses: "deriv-com/shared-actions/.github/actions/verify_user_in_organization@v1"
with:
username: ${{github.event.pull_request.user.login}}
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Validate Required Secrets
id: check-secrets
run: |
Expand Down Expand Up @@ -69,11 +76,6 @@ jobs:
statuses: write
contents: read
steps:
- name: Verify user
uses: "deriv-com/shared-actions/.github/actions/verify_user_in_organization@v1"
with:
username: ${{github.event.pull_request.user.login}}
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Checkout repository
uses: actions/checkout@v4

Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Verify user
uses: "deriv-com/shared-actions/.github/actions/verify_user_in_organization@v1"
with:
username: ${{github.event.push.sender.login}}
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- name: Checkout
uses: actions/checkout@v4

Expand Down

0 comments on commit c609f67

Please sign in to comment.