Skip to content

Commit

Permalink
Polish gh-11367
Browse files Browse the repository at this point in the history
  • Loading branch information
sjohnr committed Jul 28, 2022
1 parent 8c634f8 commit 6ad567f
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/backport-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,15 @@ on:
push:
branches:
- '*.x'
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
pull-requests: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/clean_build_artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ permissions:

jobs:
main:
runs-on: ubuntu-latest
permissions:
contents: none
runs-on: ubuntu-latest
steps:
- name: Delete artifacts in cron job
env:
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/continuous-integration-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ env:
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
RUN_JOBS: ${{ github.repository == 'spring-projects/spring-security' }}

permissions:
contents: read

jobs:
prerequisites:
name: Pre-requisites for building
Expand Down Expand Up @@ -232,11 +235,11 @@ jobs:
DOCS_SSH_KEY: ${{ secrets.DOCS_SSH_KEY }}
DOCS_HOST: ${{ secrets.DOCS_HOST }}
perform_release:
permissions:
contents: write # for Git to git push
name: Perform release
needs: [prerequisites, deploy_artifacts, deploy_docs, deploy_schema]
runs-on: ubuntu-latest
permissions:
contents: write
timeout-minutes: 90
if: ${{ !endsWith(needs.prerequisites.outputs.project_version, '-SNAPSHOT') }}
env:
Expand Down Expand Up @@ -325,6 +328,9 @@ jobs:
name: Perform post-release
needs: [prerequisites, deploy_artifacts, deploy_docs, deploy_schema]
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
timeout-minutes: 90
if: ${{ endsWith(needs.prerequisites.outputs.project_version, '-SNAPSHOT') }}
env:
Expand All @@ -343,6 +349,8 @@ jobs:
needs: [build_jdk_11, snapshot_tests, check_samples, check_tangles, deploy_artifacts, deploy_docs, deploy_schema, perform_release, perform_post_release]
if: failure()
runs-on: ubuntu-latest
permissions:
actions: read
steps:
- name: Send Slack message
# Workaround while waiting for Gamesight/slack-workflow-status#38 to be fixed
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/milestone-spring-releasetrain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ on:
env:
DUE_ON: ${{ github.event.milestone.due_on }}
TITLE: ${{ github.event.milestone.title }}
permissions:
contents: read
jobs:
spring-releasetrain-checks:
permissions:
contents: none
name: Check DueOn is on a Release Date
runs-on: ubuntu-latest
permissions:
contents: none
steps:
- name: Print Milestone Being Checked
run: echo "Validating DueOn '$DUE_ON' for milestone '$TITLE'"
Expand All @@ -25,6 +27,8 @@ jobs:
needs: [spring-releasetrain-checks]
if: failure()
runs-on: ubuntu-latest
permissions:
actions: read
steps:
- name: Send Slack message
uses: Gamesight/[email protected]
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/update-scheduled-release-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,17 @@ env:
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
GRADLE_ENTERPRISE_SECRET_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}

permissions:
contents: read

jobs:
update_scheduled_release_version:
name: Initiate Release If Scheduled
if: ${{ github.repository == 'spring-projects/spring-security' }}
runs-on: ubuntu-latest
permissions:
contents: read
actions: read
steps:
- id: checkout-source
name: Checkout Source Code
Expand Down

0 comments on commit 6ad567f

Please sign in to comment.