Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ on:
name: Build Latest Docs
run-name: Build Latest Docs - ${{ inputs.version }}

permissions: {}

jobs:
docs:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
contents: read # checkout repository
id-token: write # OIDC for AWS credentials
environment: Docs
steps:
- name: Checkout Repository
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/check-pmd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,13 @@ on:
name: PMD
run-name: PMD - ${{ github.event_name }}

permissions:
contents: read
permissions: {}

jobs:
pmd_analyse:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
contents: read # checkout repository
steps:
- name: Checkout Repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand All @@ -39,4 +37,4 @@ jobs:
- uses: pmd/pmd-github-action@d9c1f3c5940cbf5923f1354e83fa858b4496ebaa # v2.0.0
with:
rulesets: '.github/pmd-ruleset.xml'
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
7 changes: 4 additions & 3 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@ on:
name: Release Drafter
run-name: Release Drafter

permissions: {}

jobs:
update_release:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
contents: write # required for creating draft releases
steps:
- name: Relase Drafter
uses: release-drafter/release-drafter@6db134d15f3909ccc9eefd369f02bd1e9cffdf97
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20 changes: 12 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ on:
name: Release
run-name: Release – ${{ inputs.version }}

permissions:
contents: read
permissions: {}

env:
RELEASE_COMMIT: ${{ github.sha }}
Expand Down Expand Up @@ -98,6 +97,8 @@ jobs:
runs-on: ubuntu-latest
needs:
- setup
permissions:
contents: read # checkout repository
outputs:
source_hash: ${{ steps.upload_source.outputs.artifact-digest }}
steps:
Expand Down Expand Up @@ -128,8 +129,7 @@ jobs:
- version_seal
if: ${{ inputs.skip_checks == false }}
permissions:
contents: write
id-token: write
contents: read # checkout and run tests
steps:
- id: download_source
name: Download artifacts
Expand Down Expand Up @@ -162,6 +162,8 @@ jobs:
- quality
- version_seal
if: ${{ always() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }}
permissions:
contents: read # download artifacts
strategy:
matrix:
java: ${{ fromJson(needs.setup.outputs.build_matrix) }}
Expand All @@ -187,6 +189,8 @@ jobs:
if: ${{ github.repository == 'aws-powertools/powertools-lambda-java' && inputs.skip_publish == false && always() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }}
needs:
- build
permissions:
contents: read # download artifacts
environment: Release
steps:
- id: download_source
Expand Down Expand Up @@ -219,8 +223,8 @@ jobs:
- build
- publish
permissions:
pull-requests: write
contents: write
contents: write # create tag and branch
pull-requests: write # create PR
steps:
- id: checkout
name: Checkout repository
Expand Down Expand Up @@ -266,8 +270,8 @@ jobs:
needs:
- create_pr
permissions:
contents: read
id-token: write
contents: read # checkout repository
id-token: write # OIDC for AWS credentials
environment: Docs
steps:
- id: checkout
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/security-dependencies-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@ on:
name: Verify Dependencies
run-name: Verify Dependencies – ${{ github.event_name }}

permissions:
contents: read
permissions: {}

jobs:
verify:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
contents: read # checkout repository and read dependency snapshots
pull-requests: write # post review comments
steps:
- name: Checkout Repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/security-scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,17 @@ on:
name: OpenSSF Scorecard
run-name: OpenSSF Scorecard

permissions: read-all
permissions: {}

jobs:
analysis:
name: Scorecard analysis
runs-on: ubuntu-latest
environment: Security
permissions:
security-events: write
id-token: write
contents: read # checkout repository
security-events: write # upload SARIF results
id-token: write # OIDC authentication
steps:
- name: Checkout Repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading