Skip to content
Merged
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
3 changes: 3 additions & 0 deletions .github/workflows/_check_code.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
# Runs when invoked by another workflow.
workflow_call:

permissions:
contents: read

jobs:
actions_lint_check:
name: Actions lint check
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/_check_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
# Runs when invoked by another workflow.
workflow_call:

permissions:
contents: read

jobs:
doc_checks:
name: Doc checks
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/_release_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
required: true
type: string

permissions:
contents: read

env:
NODE_VERSION: 22
PYTHON_VERSION: 3.14
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
# Runs when invoked by another workflow.
workflow_call:

permissions:
contents: read

jobs:
unit_tests:
name: Unit tests
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/manual_release_stable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ concurrency:
group: release
cancel-in-progress: false

permissions:
contents: read

jobs:
code_checks:
name: Code checks
Expand All @@ -51,6 +54,8 @@ jobs:
changelog_update:
name: Changelog update
needs: [release_prepare]
permissions:
contents: write
uses: apify/workflows/.github/workflows/python_bump_and_update_changelog.yaml@main
with:
version_number: ${{ needs.release_prepare.outputs.version_number }}
Expand All @@ -61,6 +66,8 @@ jobs:
name: GitHub release
needs: [release_prepare, changelog_update]
runs-on: ubuntu-latest
permissions:
contents: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
Expand Down Expand Up @@ -100,6 +107,10 @@ jobs:
doc_release:
name: Doc release
needs: [changelog_update, pypi_publish]
permissions:
contents: write
pages: write
id-token: write
uses: ./.github/workflows/_release_docs.yaml
with:
# Use the ref from the changelog update to include the updated changelog.
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/on_issue.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
types:
- opened

permissions:
contents: read

jobs:
label_issues:
name: Add labels
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/on_master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ concurrency:
group: release
cancel-in-progress: false

permissions:
contents: read

jobs:
doc_checks:
name: Doc checks
Expand All @@ -21,6 +24,10 @@ jobs:
if: startsWith(github.event.head_commit.message, 'docs')
name: Doc release
needs: [doc_checks]
permissions:
contents: write
pages: write
id-token: write
uses: ./.github/workflows/_release_docs.yaml
with:
# Use the same ref as the one that triggered the workflow.
Expand Down Expand Up @@ -64,6 +71,8 @@ jobs:
changelog_update:
name: Changelog update
needs: [release_prepare]
permissions:
contents: write
uses: apify/workflows/.github/workflows/python_bump_and_update_changelog.yaml@main
with:
version_number: ${{ needs.release_prepare.outputs.version_number }}
Expand Down Expand Up @@ -95,6 +104,10 @@ jobs:
doc_release_post_publish:
name: Doc release post publish
needs: [changelog_update, pypi_publish]
permissions:
contents: write
pages: write
id-token: write
uses: ./.github/workflows/_release_docs.yaml
with:
# Use the ref from the changelog update to include the updated changelog.
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/on_pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
# Runs whenever a pull request is opened or updated.
pull_request:

permissions:
contents: read
pull-requests: read

jobs:
pr_title_check:
name: PR title check
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/on_schedule_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ concurrency:
group: scheduled-tests
cancel-in-progress: false

permissions:
contents: read

env:
NODE_VERSION: 22
PYTHON_VERSION: 3.14
Expand Down
Loading