mirror of
https://github.com/containers/podman.git
synced 2026-07-12 16:25:08 -04:00
Merge pull request #28778 from nimdrak/disable_workflows_in_the_forked
ci: restrict specific workflows to the upstream repository
This commit is contained in:
5
.github/workflows/assign.yml
vendored
5
.github/workflows/assign.yml
vendored
@@ -7,7 +7,10 @@ on:
|
||||
jobs:
|
||||
assign:
|
||||
# Only run on issue comments (not PR comments)
|
||||
if: "!github.event.issue.pull_request && contains(github.event.comment.body, '/assign')"
|
||||
if: |
|
||||
!github.event.issue.pull_request &&
|
||||
contains(github.event.comment.body, '/assign') &&
|
||||
github.repository == 'podman-container-tools/podman'
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
issues: write
|
||||
|
||||
6
.github/workflows/cherry-pick.yml
vendored
6
.github/workflows/cherry-pick.yml
vendored
@@ -11,7 +11,8 @@ jobs:
|
||||
if: |
|
||||
github.event_name == 'issue_comment' &&
|
||||
github.event.issue.pull_request &&
|
||||
contains(github.event.comment.body, '/cherry-pick ')
|
||||
contains(github.event.comment.body, '/cherry-pick ') &&
|
||||
github.repository == 'podman-container-tools/podman'
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
@@ -194,7 +195,8 @@ jobs:
|
||||
cherry-pick-on-merge:
|
||||
if: |
|
||||
github.event_name == 'pull_request' &&
|
||||
github.event.pull_request.merged == true
|
||||
github.event.pull_request.merged == true &&
|
||||
github.repository == 'podman-container-tools/podman'
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@@ -19,6 +19,7 @@ concurrency:
|
||||
jobs:
|
||||
path-filter:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'podman-container-tools/podman'
|
||||
outputs:
|
||||
all: ${{ steps.filter.outputs.all }}
|
||||
code: ${{ steps.filter.outputs.code }}
|
||||
@@ -46,6 +47,7 @@ jobs:
|
||||
validate-source:
|
||||
name: Validate source code changes
|
||||
runs-on: cncf-ubuntu-8-32-x86
|
||||
if: github.repository == 'podman-container-tools/podman'
|
||||
permissions:
|
||||
pull-requests: read # For hack/ci/pr-should-include-tests to query PR labels.
|
||||
env:
|
||||
@@ -183,6 +185,7 @@ jobs:
|
||||
build-alt:
|
||||
name: Cross Build (Linux, FreeBSD)
|
||||
runs-on: cncf-ubuntu-16-64-x86
|
||||
if: github.repository == 'podman-container-tools/podman'
|
||||
steps:
|
||||
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
||||
with:
|
||||
@@ -196,6 +199,7 @@ jobs:
|
||||
|
||||
build:
|
||||
name: build ${{ matrix.distro }}
|
||||
if: github.repository == 'podman-container-tools/podman'
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
@@ -210,6 +214,7 @@ jobs:
|
||||
windows-installer:
|
||||
name: windows installer ${{ matrix.provider }}
|
||||
runs-on: windows-2025-vs2026
|
||||
if: github.repository == 'podman-container-tools/podman'
|
||||
timeout-minutes: 20
|
||||
permissions:
|
||||
contents: read
|
||||
@@ -285,6 +290,7 @@ jobs:
|
||||
macos-installer:
|
||||
name: macos installer
|
||||
runs-on: macos-26
|
||||
if: github.repository == 'podman-container-tools/podman'
|
||||
timeout-minutes: 15
|
||||
steps:
|
||||
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
||||
|
||||
1
.github/workflows/dev-bump.yml
vendored
1
.github/workflows/dev-bump.yml
vendored
@@ -8,6 +8,7 @@ permissions: {}
|
||||
|
||||
jobs:
|
||||
bump:
|
||||
if: github.repository == 'podman-container-tools/podman'
|
||||
name: Bump to -dev
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
|
||||
@@ -22,7 +22,12 @@ jobs:
|
||||
screenshot_and_comment:
|
||||
# This job runs if the PR was merged or if it's a manual trigger.
|
||||
# The logic for first-time contributors is handled in a dedicated step below.
|
||||
if: ${{ github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true }}
|
||||
if: |
|
||||
(
|
||||
github.event_name == 'workflow_dispatch' ||
|
||||
github.event.pull_request.merged == true
|
||||
) &&
|
||||
github.repository == 'podman-container-tools/podman'
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read # Write access for certificate storage
|
||||
|
||||
1
.github/workflows/issue-labeler.yml
vendored
1
.github/workflows/issue-labeler.yml
vendored
@@ -8,6 +8,7 @@ permissions:
|
||||
|
||||
jobs:
|
||||
triage:
|
||||
if: github.repository == 'podman-container-tools/podman'
|
||||
permissions:
|
||||
contents: read # for github/issue-labeler to get repo contents
|
||||
issues: write # for github/issue-labeler to create or remove labels
|
||||
|
||||
1
.github/workflows/issue_pr_lock.yml
vendored
1
.github/workflows/issue_pr_lock.yml
vendored
@@ -45,6 +45,7 @@ env:
|
||||
|
||||
jobs:
|
||||
manage_locking:
|
||||
if: github.repository == 'podman-container-tools/podman'
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
issues: write
|
||||
|
||||
1
.github/workflows/labeler.yml
vendored
1
.github/workflows/labeler.yml
vendored
@@ -7,6 +7,7 @@ permissions: {}
|
||||
|
||||
jobs:
|
||||
triage:
|
||||
if: github.repository == 'podman-container-tools/podman'
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
|
||||
1
.github/workflows/machine-os-pr.yml
vendored
1
.github/workflows/machine-os-pr.yml
vendored
@@ -14,6 +14,7 @@ concurrency:
|
||||
|
||||
jobs:
|
||||
podman-image-build-pr:
|
||||
if: github.repository == 'podman-container-tools/podman'
|
||||
name: Open PR on podman-machine-os
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
|
||||
4
.github/workflows/needs-info-labeler.yaml
vendored
4
.github/workflows/needs-info-labeler.yaml
vendored
@@ -8,7 +8,9 @@ permissions: {}
|
||||
|
||||
jobs:
|
||||
add-comment:
|
||||
if: github.event.label.name == 'needs-info'
|
||||
if: |
|
||||
github.event.label.name == 'needs-info' &&
|
||||
github.repository == 'podman-container-tools/podman'
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
issues: write
|
||||
|
||||
@@ -49,6 +49,7 @@ jobs:
|
||||
build-artifacts:
|
||||
name: Build Artifacts
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'podman-container-tools/podman'
|
||||
outputs:
|
||||
version_display: ${{ steps.set-version.outputs.version_display }}
|
||||
steps:
|
||||
@@ -88,6 +89,7 @@ jobs:
|
||||
mac-pkg:
|
||||
name: Build MacOS pkginstaller
|
||||
runs-on: macos-latest
|
||||
if: github.repository == 'podman-container-tools/podman'
|
||||
env:
|
||||
APPLICATION_CERTIFICATE: ${{ secrets.MACOS_APPLICATION_CERT }}
|
||||
CODESIGN_IDENTITY: ${{ secrets.MACOS_APPLICATION_IDENTITY }}
|
||||
|
||||
@@ -17,7 +17,9 @@ jobs:
|
||||
get-latest-release:
|
||||
name: Get branch for latest release
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event_name == 'schedule'
|
||||
if: |
|
||||
github.event_name == 'schedule' &&
|
||||
github.repository == 'podman-container-tools/podman'
|
||||
outputs:
|
||||
release_ref: ${{ steps.set.outputs.release_ref }}
|
||||
steps:
|
||||
@@ -44,7 +46,9 @@ jobs:
|
||||
build-artifacts-main:
|
||||
name: Build Artifacts (main)
|
||||
uses: ./.github/workflows/release-build-artifacts.yml
|
||||
if: github.event_name == 'schedule'
|
||||
if: |
|
||||
github.event_name == 'schedule' &&
|
||||
github.repository == 'podman-container-tools/podman'
|
||||
with:
|
||||
version: 'main'
|
||||
secrets:
|
||||
@@ -89,7 +93,9 @@ jobs:
|
||||
build-artifacts-single:
|
||||
name: Build Artifacts
|
||||
uses: ./.github/workflows/release-build-artifacts.yml
|
||||
if: github.event_name == 'workflow_dispatch'
|
||||
if: |
|
||||
github.event_name == 'workflow_dispatch' &&
|
||||
github.repository == 'podman-container-tools/podman'
|
||||
with:
|
||||
version: ${{ inputs.ref }}
|
||||
secrets:
|
||||
@@ -110,6 +116,7 @@ jobs:
|
||||
|
||||
validate-tokens:
|
||||
name: Validate GitHub tokens
|
||||
if: github.repository == 'podman-container-tools/podman'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Validate PODMANBOT_TOKEN
|
||||
|
||||
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
@@ -21,6 +21,7 @@ permissions:
|
||||
|
||||
jobs:
|
||||
check:
|
||||
if: github.repository == 'podman-container-tools/podman'
|
||||
name: Check
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
2
.github/workflows/stale.yml
vendored
2
.github/workflows/stale.yml
vendored
@@ -12,7 +12,7 @@ permissions:
|
||||
|
||||
jobs:
|
||||
stale:
|
||||
|
||||
if: github.repository == 'podman-container-tools/podman'
|
||||
permissions:
|
||||
issues: write # for actions/stale to close stale issues
|
||||
pull-requests: write # for actions/stale to close stale PRs
|
||||
|
||||
1
.github/workflows/update-podmanio.yml
vendored
1
.github/workflows/update-podmanio.yml
vendored
@@ -22,6 +22,7 @@ permissions: {}
|
||||
|
||||
jobs:
|
||||
bump:
|
||||
if: github.repository == 'podman-container-tools/podman'
|
||||
name: Bump
|
||||
runs-on: ubuntu-24.04
|
||||
permissions:
|
||||
|
||||
Reference in New Issue
Block a user