Skip to content

Commit 3f4efed

Browse files
author
Steve Riesenberg
committed
Polish gh-11367
1 parent 8f93a7f commit 3f4efed

6 files changed

+32
-5
lines changed

.github/workflows/backport-bot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,15 @@ on:
66
push:
77
branches:
88
- '*.x'
9+
permissions:
10+
contents: read
911
jobs:
1012
build:
1113
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
issues: write
17+
pull-requests: write
1218
steps:
1319
- uses: actions/checkout@v3
1420
- 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
@@ -233,11 +236,11 @@ jobs:
233236
DOCS_SSH_KEY: ${{ secrets.DOCS_SSH_KEY }}
234237
DOCS_HOST: ${{ secrets.DOCS_HOST }}
235238
perform_release:
236-
permissions:
237-
contents: write # for Git to git push
238239
name: Perform release
239240
needs: [prerequisites, deploy_artifacts, deploy_docs, deploy_schema]
240241
runs-on: ubuntu-latest
242+
permissions:
243+
contents: write
241244
timeout-minutes: 90
242245
if: ${{ !endsWith(needs.prerequisites.outputs.project_version, '-SNAPSHOT') }}
243246
env:
@@ -326,6 +329,9 @@ jobs:
326329
name: Perform post-release
327330
needs: [prerequisites, deploy_artifacts, deploy_docs, deploy_schema]
328331
runs-on: ubuntu-latest
332+
permissions:
333+
contents: read
334+
issues: write
329335
timeout-minutes: 90
330336
if: ${{ endsWith(needs.prerequisites.outputs.project_version, '-SNAPSHOT') }}
331337
env:
@@ -341,6 +347,8 @@ jobs:
341347
needs: [build_jdk_17, snapshot_tests, check_samples, check_tangles, deploy_artifacts, deploy_docs, deploy_schema, perform_release, perform_post_release]
342348
if: failure()
343349
runs-on: ubuntu-latest
350+
permissions:
351+
actions: read
344352
steps:
345353
- name: Send Slack message
346354
# 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/release-scheduler.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
- cron: '15 15 * * MON' # Every Monday at 3:15pm UTC
66
workflow_dispatch:
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
dispatch_scheduled_releases:
1013
name: Dispatch scheduled releases

.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)