Skip to content
Open
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
10 changes: 3 additions & 7 deletions .github/workflows/blossom-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,8 @@ on:
required: false

permissions:
actions: write
checks: write
contents: write
issues: write
pull-requests: write
repository-projects: write
contents: read
pull-requests: read
statuses: write

jobs:
Expand Down Expand Up @@ -54,7 +50,7 @@ jobs:
uses: actions/checkout@v7
with:
repository: ${{ fromJson(needs.Authorization.outputs.args).repo }}
ref: ${{ fromJson(needs.Authorization.outputs.args).ref }}
ref: ${{ fromJson(needs.Authorization.outputs.args).sha }}
lfs: 'true'

# repo specific steps
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
- main
- releasing/*

permissions:
contents: read

concurrency:
# automatically cancel the previously triggered workflows when there's a newer version
group: build-docs-${{ github.event.pull_request.number || github.ref }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/chatops.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# triggering the workflows by commenting `/black` and `/integration-test`
name: chatops

permissions:
contents: read

# currently dispatches /black command to project-monai/monai-code-formatter
on:
issue_comment:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/cicd_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ on:
- '**.rst'
- 'docs/**'

permissions:
contents: read

concurrency:
# automatically cancel the previously triggered workflows when there's a newer version
group: cicd-tests-${{ github.event.pull_request.number || github.ref }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

permissions:
contents: read

concurrency:
# automatically cancel the previously triggered workflows when there's a newer version
group: conda-tests-${{ github.event.pull_request.number || github.ref }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/cron-ngc-bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

permissions:
contents: read

concurrency:
# automatically cancel the previously triggered workflows when there's a newer version
group: bundle-tests-${{ github.event.pull_request.number || github.ref }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

permissions:
contents: read

jobs:
cron-gpu:
if: github.repository == 'Project-MONAI/MONAI'
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
# This is to trigger building/testing docker image from dev only.
workflow_dispatch:

permissions:
contents: read

jobs:
versioning_dev:
# compute versioning file from python setup.py
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
repository_dispatch:
type: [integration-test-command]

permissions:
contents: read

jobs:
integration-auto3dseg:
container:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pythonapp-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

permissions:
contents: read

concurrency:
# automatically cancel the previously triggered workflows when there's a newer version
group: build-gpu-${{ github.event.pull_request.number || github.ref }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pythonapp-hyena-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ name: hyena-gpu
on:
workflow_dispatch:

permissions:
contents: read

concurrency:
group: hyena-gpu-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
tags:
- '*'

permissions:
contents: read

jobs:
packaging:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/setupapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

permissions:
contents: read

concurrency:
# automatically cancel the previously triggered workflows when there's a newer version
group: deploy-${{ github.event.pull_request.number || github.ref }}
Expand Down
2 changes: 1 addition & 1 deletion monai/apps/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def get_filename_from_url(data_url: str) -> str:
filename = re.findall('filename="?([^";]+)"?', content_disposition)
if filename:
return str(filename[0])
if "drive.google.com" in data_url:
if urlparse(data_url).netloc == "drive.google.com":
Comment thread
coderabbitai[bot] marked this conversation as resolved.
response = requests.get(data_url)
if "text/html" in response.headers.get("Content-Type", ""):
soup = BeautifulSoup(response.text, "html.parser")
Expand Down
Loading