GeezerVison is showing github.com — [improve][ci] Check ASF action allowlist in preconditions (#26572) · apache/pulsar@add1172
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/actions/setup-gradle/action.yml +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
54 | 54 |
|
55 | 55 | - name: Setup Gradle with Develocity |
56 | 56 | if: ${{ inputs.develocity-access-key != '' && inputs.build-scan-publish == 'true' && github.event.repository.visibility == 'public' }} |
57 | | - uses: gradle/actions/setup-gradle@3f131e8634966bd73d06cc69884922b02e6faf92 # v6.2.0 |
| 57 | + uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6.3.0 |
58 | 58 | with: |
59 | 59 | develocity-injection-enabled: true |
60 | 60 | develocity-url: https://develocity.apache.org |
|
66 | 66 |
|
67 | 67 | - name: Setup Gradle |
68 | 68 | if: ${{ !(inputs.develocity-access-key != '' && inputs.build-scan-publish == 'true' && github.event.repository.visibility == 'public') }} |
69 | | - uses: gradle/actions/setup-gradle@3f131e8634966bd73d06cc69884922b02e6faf92 # v6.2.0 |
| 69 | + uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6.3.0 |
70 | 70 | with: |
71 | 71 | build-scan-publish: ${{ inputs.build-scan-publish == 'true' && github.event.repository.visibility == 'public' }} |
72 | 72 | build-scan-terms-of-use-url: 'https://gradle.com/terms-of-service' |
|
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/ci-gradle-dependency-submission.yaml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
67 | 67 | cache-read-only: false |
68 | 68 |
|
69 | 69 | - name: Generate and submit dependency graph |
70 | | - uses: gradle/actions/dependency-submission@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e |
| 70 | + uses: gradle/actions/dependency-submission@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6.3.0 |
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/pulsar-ci.yaml +6-1Lines changed: 6 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -115,9 +115,14 @@ jobs: |
115 | 115 | echo "jdk_major_version=${{ github.event_name == 'workflow_dispatch' && github.event.inputs.jdk_major_version || '25'}}" >> $GITHUB_OUTPUT |
116 | 116 |
|
117 | 117 | - name: checkout |
118 | | - if: ${{ github.event_name == 'pull_request' }} |
119 | 118 | uses: actions/checkout@v6 |
120 | 119 |
|
| 120 | + - name: Check ASF action allowlist |
| 121 | + if: ${{ (github.event.pull_request.base.repo.owner.login || github.repository_owner) == 'apache' }} |
| 122 | + uses: apache/infrastructure-actions/allowlist-check@main |
| 123 | + with: |
| 124 | + scan-glob: '.github/**/*.y*ml' |
| 125 | + |
121 | 126 | - name: Detect changed files |
122 | 127 | if: ${{ github.event_name == 'pull_request' }} |
123 | 128 | id: changes |
|