Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/auto-merge-dockers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ permissions:
jobs:
auto_approve_and_merge:
runs-on: ubuntu-latest
if: startsWith(github.head_ref, 'demisto/') && github.repository == 'demisto/content' && contains(github.event.pull_request.labels.*.name, 'docker-image-auto-update')
if: startsWith(github.head_ref, 'demisto/') && github.repository == 'khulnasoft/content' && contains(github.event.pull_request.labels.*.name, 'docker-image-auto-update')
steps:
- name: Print out context
run: |
Expand Down Expand Up @@ -41,4 +41,4 @@ jobs:
slack-message: "GitHub build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
env:
SLACK_BOT_TOKEN: ${{ secrets.CORTEX_XSOAR_SLACK_TOKEN }}
CONTENTBOT_GH_ADMIN_TOKEN: ${{ secrets.CONTENTBOT_GH_ADMIN_TOKEN }}
ORG_REPO_TOKEN: ${{ secrets.ORG_REPO_TOKEN }}
12 changes: 6 additions & 6 deletions .github/workflows/autobump_rn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
autobump_rn_version:
runs-on: ubuntu-latest
concurrency: autobump-version
if: github.repository == 'demisto/content' && startsWith(github.head_ref, 'contrib/') == false
if: github.repository == 'khulnasoft/content' && startsWith(github.head_ref, 'contrib/') == false
steps:
- name: Print out context
run: |
Expand All @@ -23,7 +23,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.CONTENTBOT_GH_ADMIN_TOKEN }}
token: ${{ secrets.ORG_REPO_TOKEN }}
- name: Setup Python
uses: actions/setup-python@v5
with:
Expand All @@ -38,11 +38,11 @@ jobs:
echo "PYTHONPATH=$GITHUB_WORKSPACE" >> $GITHUB_ENV
- name: Check conflicts and add release notes
env:
CONTENTBOT_GH_ADMIN_TOKEN: ${{ secrets.CONTENTBOT_GH_ADMIN_TOKEN }}
ORG_REPO_TOKEN: ${{ secrets.ORG_REPO_TOKEN }}
XSOAR_BOT_TEST_CONTENT: ${{ secrets.XSOAR_BOT_TEST_CONTENT }}
RUN_ID: ${{github.run_id}}
run: |
git config --global user.email "bot@demisto.com"
git config --global user.name "Content Bot"
git config --global user.email "bot@khulnasoft.com"
git config --global user.name "KhulnaSoft Bot"
echo "Someone merged to master. Starting to check if conflicts in release notes created."
poetry run python .github/github_workflow_scripts/autobump_rn.py -g $CONTENTBOT_GH_ADMIN_TOKEN -r $RUN_ID
poetry run python .github/github_workflow_scripts/autobump_rn.py -g $ORG_REPO_TOKEN -r $RUN_ID
2 changes: 1 addition & 1 deletion .github/workflows/check-contributor-pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ permissions:
jobs:
check_contributor_pack:
runs-on: ubuntu-latest
if: github.repository == 'demisto/content' && startsWith(github.head_ref, 'contrib/') == false && startsWith(github.head_ref, 'to-merge/') == false && contains(github.head_ref, 'xsoar-bot-contrib-ContributionTestPack') == false && github.event.pull_request.head.repo.fork == false
if: github.repository == 'khulnasoft/content' && startsWith(github.head_ref, 'contrib/') == false && startsWith(github.head_ref, 'to-merge/') == false && contains(github.head_ref, 'xsoar-bot-contrib-ContributionTestPack') == false && github.event.pull_request.head.repo.fork == false
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-partner-approved-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions:
jobs:
check_label_job:
runs-on: ubuntu-latest
if: github.repository == 'demisto/content' && github.event.pull_request.head.repo.fork == true && contains(github.head_ref, 'xsoar-bot-contrib-ContributionTestPack') == false
if: github.repository == 'khulnasoft/content' && github.event.pull_request.head.repo.fork == true && contains(github.head_ref, 'xsoar-bot-contrib-ContributionTestPack') == false
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/clean_stale_branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ env:
jobs:
stale:
runs-on: ubuntu-latest
if: github.repository == 'demisto/content' && github.event.pull_request.head.repo.fork == false
if: github.repository == 'khulnasoft/content' && github.event.pull_request.head.repo.fork == false
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Stale
uses: actions/stale@v8
with:
repo-token: ${{ secrets.CONTENTBOT_GH_ADMIN_TOKEN }}
repo-token: ${{ secrets.ORG_REPO_TOKEN }}
days-before-issue-stale: -1
days-before-issue-close: -1
days-before-pr-stale: ${{env.DAY_BEFORE_STALE}}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/close_jira_issue_by_pr_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions:
jobs:
add_pr_link_to_related_jira_issue:
runs-on: ubuntu-latest
if: github.repository == 'demisto/content' && github.event.pull_request.head.repo.fork == false && github.actor != 'dependabot[bot]' && github.event.action == 'closed' && github.event.pull_request.merged == true && startsWith(github.head_ref, 'contrib/') == false
if: github.repository == 'khulnasoft/content' && github.event.pull_request.head.repo.fork == false && github.actor != 'dependabot[bot]' && github.event.action == 'closed' && github.event.pull_request.merged == true && startsWith(github.head_ref, 'contrib/') == false
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/create-internal-pr-from-external.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ permissions:
jobs:
create_internal_pr:
runs-on: ubuntu-latest
if: github.repository == 'demisto/content' && github.event.action == 'closed' && github.event.pull_request.merged == true && github.event.pull_request.head.repo.fork == true
if: github.repository == 'khulnasoft/content' && github.event.action == 'closed' && github.event.pull_request.merged == true && github.event.pull_request.head.repo.fork == true
steps:
- name: set pythonpath
run: |
Expand All @@ -35,7 +35,7 @@ jobs:
poetry install --with github-actions
- name: Create Internal PR
env:
CONTENTBOT_GH_ADMIN_TOKEN: ${{ secrets.CONTENTBOT_GH_ADMIN_TOKEN }}
ORG_REPO_TOKEN: ${{ secrets.ORG_REPO_TOKEN }}
EVENT_PAYLOAD: ${{ toJson(github.event) }}
run: |
echo "Creating an internal PR from original merged external PR ${{ github.event.pull_request.html_url }}"
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/handle-new-external-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions:
jobs:
handle_new_external_pr:
runs-on: ubuntu-latest
if: github.repository == 'demisto/content' && github.event.action == 'opened' && github.event.pull_request.head.repo.fork == true && contains(github.head_ref, 'xsoar-bot-contrib-ContributionTestPack') == false
if: github.repository == 'khulnasoft/content' && github.event.action == 'opened' && github.event.pull_request.head.repo.fork == true && contains(github.head_ref, 'xsoar-bot-contrib-ContributionTestPack') == false
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -36,7 +36,7 @@ jobs:
echo "PYTHONPATH=$GITHUB_WORKSPACE" >> $GITHUB_ENV
- name: Update External PR
env:
CONTENTBOT_GH_ADMIN_TOKEN: ${{ secrets.CONTENTBOT_GH_ADMIN_TOKEN }}
ORG_REPO_TOKEN: ${{ secrets.ORG_REPO_TOKEN }}
EVENT_PAYLOAD: ${{ toJson(github.event) }}
run: |
echo "Updating External PR ${{ github.event.pull_request.html_url }}"
Expand All @@ -48,15 +48,15 @@ jobs:
if: contains(github.event.pull_request.title, '[Marketplace Contribution]')
run: gh pr edit "$PR_NUMBER" --add-label "$LABEL"
env:
GH_TOKEN: ${{ secrets.CONTENTBOT_GH_ADMIN_TOKEN }}
GH_TOKEN: ${{ secrets.ORG_REPO_TOKEN }}
GH_REPO: ${{ github.repository }}
PR_NUMBER: ${{ github.event.pull_request.number }}
LABEL: "Contribution Form Filled"

- name: Send Notification
if: startsWith(github.event.pull_request.title, 'test') != true
env:
CONTENTBOT_GH_ADMIN_TOKEN: ${{ secrets.CONTENTBOT_GH_ADMIN_TOKEN }}
ORG_REPO_TOKEN: ${{ secrets.ORG_REPO_TOKEN }}
EVENT_PAYLOAD: ${{ toJson(github.event) }}
CORTEX_XSOAR_SLACK_TOKEN: ${{ secrets.CORTEX_XSOAR_SLACK_TOKEN }}
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/purge_branch_protection_rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

- name: Purge Protection Rules
env:
GITHUB_TOKEN: ${{ secrets.CONTENTBOT_GH_ADMIN_TOKEN }}
GITHUB_TOKEN: ${{ secrets.ORG_REPO_TOKEN }}
run: |
echo Purging branch protection rules
poetry run python .github/github_workflow_scripts/purge_branch_protection_rules.py
Expand All @@ -41,4 +41,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: purge_branch_protection_rules_${{ github.run_id }}
path: "${{ github.workspace }}/purge_branch_protection_rules.log"
path: "${{ github.workspace }}/purge_branch_protection_rules.log"
2 changes: 1 addition & 1 deletion .github/workflows/review-release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ env:
jobs:
release_notes_review:
runs-on: ubuntu-latest
if: github.repository == 'demisto/content'
if: github.repository == 'khulnasoft/content'
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/security-label-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
jobs:
security-check:
runs-on: ubuntu-latest
if: github.repository == 'demisto/content' && github.event.pull_request.head.repo.fork == true && contains(github.head_ref, 'xsoar-bot-contrib-ContributionTestPack') == false
if: github.repository == 'khulnasoft/content' && github.event.pull_request.head.repo.fork == true && contains(github.head_ref, 'xsoar-bot-contrib-ContributionTestPack') == false
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sync-contribution-base-branch-on-change.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ permissions:
jobs:
sync_contributor_base_branch:
runs-on: ubuntu-latest
if: github.repository == 'demisto/content' && github.event.pull_request.head.repo.fork == true && contains(github.head_ref, 'xsoar-bot-contrib-ContributionTestPack') == false
if: github.repository == 'khulnasoft/content' && github.event.pull_request.head.repo.fork == true && contains(github.head_ref, 'xsoar-bot-contrib-ContributionTestPack') == false
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -28,7 +28,7 @@ jobs:
poetry install --with github-actions
- name: Sync Base Branch to Master
env:
CONTENTBOT_GH_ADMIN_TOKEN: ${{ secrets.CONTENTBOT_GH_ADMIN_TOKEN }}
ORG_REPO_TOKEN: ${{ secrets.ORG_REPO_TOKEN }}
run: |
echo "Updating contribution base branch (contrib/*)"
cd .github/github_workflow_scripts
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sync-contribution-base-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ permissions:
jobs:
sync_contributor_base_branch:
runs-on: ubuntu-latest
if: github.repository == 'demisto/content'
if: github.repository == 'khulnasoft/content'
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -25,7 +25,7 @@ jobs:
poetry install --with github-actions
- name: Sync Base Branch to Master
env:
CONTENTBOT_GH_ADMIN_TOKEN: ${{ secrets.CONTENTBOT_GH_ADMIN_TOKEN }}
ORG_REPO_TOKEN: ${{ secrets.ORG_REPO_TOKEN }}
run: |
echo "Updating contribution base branches (contrib/*)"
cd .github/github_workflow_scripts
Expand Down
Loading