Skip to content

Commit 81fae2d

Browse files
author
Steve Riesenberg
committed
Polish gh-11367
1 parent 054a3f0 commit 81fae2d

5 files changed

+29
-5
lines changed

.github/workflows/backport-bot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,15 @@ on:
88
push:
99
branches:
1010
- '*.x'
11+
permissions:
12+
contents: read
1113
jobs:
1214
build:
1315
runs-on: ubuntu-latest
16+
permissions:
17+
contents: read
18+
issues: write
19+
pull-requests: write
1420
steps:
1521
- uses: actions/checkout@v3
1622
- uses: actions/setup-java@v3

.github/workflows/clean_build_artifacts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ permissions:
88

99
jobs:
1010
main:
11+
runs-on: ubuntu-latest
1112
permissions:
1213
contents: none
13-
runs-on: ubuntu-latest
1414
steps:
1515
- name: Delete artifacts in cron job
1616
env:

.github/workflows/continuous-integration-workflow.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ env:
2020
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
2121
RUN_JOBS: ${{ github.repository == 'spring-projects/spring-security' }}
2222

23+
permissions:
24+
contents: read
25+
2326
jobs:
2427
prerequisites:
2528
name: Pre-requisites for building
@@ -232,11 +235,11 @@ jobs:
232235
DOCS_SSH_KEY: ${{ secrets.DOCS_SSH_KEY }}
233236
DOCS_HOST: ${{ secrets.DOCS_HOST }}
234237
perform_release:
235-
permissions:
236-
contents: write # for Git to git push
237238
name: Perform release
238239
needs: [prerequisites, deploy_artifacts, deploy_docs, deploy_schema]
239240
runs-on: ubuntu-latest
241+
permissions:
242+
contents: write
240243
timeout-minutes: 90
241244
if: ${{ !endsWith(needs.prerequisites.outputs.project_version, '-SNAPSHOT') }}
242245
env:
@@ -325,6 +328,9 @@ jobs:
325328
name: Perform post-release
326329
needs: [prerequisites, deploy_artifacts, deploy_docs, deploy_schema]
327330
runs-on: ubuntu-latest
331+
permissions:
332+
contents: read
333+
issues: write
328334
timeout-minutes: 90
329335
if: ${{ endsWith(needs.prerequisites.outputs.project_version, '-SNAPSHOT') }}
330336
env:
@@ -343,6 +349,8 @@ jobs:
343349
needs: [build_jdk_11, snapshot_tests, check_samples, check_tangles, deploy_artifacts, deploy_docs, deploy_schema, perform_release, perform_post_release]
344350
if: failure()
345351
runs-on: ubuntu-latest
352+
permissions:
353+
actions: read
346354
steps:
347355
- name: Send Slack message
348356
# Workaround while waiting for Gamesight/slack-workflow-status#38 to be fixed

.github/workflows/milestone-spring-releasetrain.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ on:
55
env:
66
DUE_ON: ${{ github.event.milestone.due_on }}
77
TITLE: ${{ github.event.milestone.title }}
8+
permissions:
9+
contents: read
810
jobs:
911
spring-releasetrain-checks:
10-
permissions:
11-
contents: none
1212
name: Check DueOn is on a Release Date
1313
runs-on: ubuntu-latest
14+
permissions:
15+
contents: none
1416
steps:
1517
- name: Print Milestone Being Checked
1618
run: echo "Validating DueOn '$DUE_ON' for milestone '$TITLE'"
@@ -25,6 +27,8 @@ jobs:
2527
needs: [spring-releasetrain-checks]
2628
if: failure()
2729
runs-on: ubuntu-latest
30+
permissions:
31+
actions: read
2832
steps:
2933
- name: Send Slack message
3034
uses: Gamesight/[email protected]

.github/workflows/update-scheduled-release-version.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,17 @@ env:
99
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
1010
GRADLE_ENTERPRISE_SECRET_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
update_scheduled_release_version:
1417
name: Initiate Release If Scheduled
1518
if: ${{ github.repository == 'spring-projects/spring-security' }}
1619
runs-on: ubuntu-latest
20+
permissions:
21+
contents: read
22+
actions: read
1723
steps:
1824
- id: checkout-source
1925
name: Checkout Source Code

0 commit comments

Comments
 (0)