mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-10-31 16:22:49 +00:00
ci: grant contents:read so checkout works on this private fork
This commit is contained in:
@@ -7,7 +7,11 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [ develop ]
|
branches: [ develop ]
|
||||||
|
|
||||||
permissions: {}
|
permissions:
|
||||||
|
# Private fork: actions/checkout needs contents:read to clone. Upstream is public,
|
||||||
|
# where an empty token can still read the repo, so an empty permissions block works there and
|
||||||
|
# fails here with `fatal: repository not found`.
|
||||||
|
contents: read
|
||||||
|
|
||||||
# Enrich gradle.properties for CI/CD
|
# Enrich gradle.properties for CI/CD
|
||||||
env:
|
env:
|
||||||
@@ -19,6 +23,9 @@ jobs:
|
|||||||
name: Build APKs
|
name: Build APKs
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
|
# A job-level block replaces the workflow-level one, so contents:read has to be
|
||||||
|
# repeated here or checkout fails on this private fork.
|
||||||
|
contents: read
|
||||||
# For NejcZdovc/comment-pr
|
# For NejcZdovc/comment-pr
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
strategy:
|
strategy:
|
||||||
|
|||||||
@@ -7,7 +7,11 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [ develop ]
|
branches: [ develop ]
|
||||||
|
|
||||||
permissions: {}
|
permissions:
|
||||||
|
# Private fork: actions/checkout needs contents:read to clone. Upstream is public,
|
||||||
|
# where an empty token can still read the repo, so an empty permissions block works there and
|
||||||
|
# fails here with `fatal: repository not found`.
|
||||||
|
contents: read
|
||||||
|
|
||||||
# Enrich gradle.properties for CI/CD
|
# Enrich gradle.properties for CI/CD
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -2,7 +2,11 @@ name: Danger CI
|
|||||||
|
|
||||||
on: [pull_request, merge_group]
|
on: [pull_request, merge_group]
|
||||||
|
|
||||||
permissions: {}
|
permissions:
|
||||||
|
# Private fork: actions/checkout needs contents:read to clone. Upstream is public,
|
||||||
|
# where an empty token can still read the repo, so an empty permissions block works there and
|
||||||
|
# fails here with `fatal: repository not found`.
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|||||||
@@ -5,7 +5,11 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
permissions: {}
|
permissions:
|
||||||
|
# Private fork: actions/checkout needs contents:read to clone. Upstream is public,
|
||||||
|
# where an empty token can still read the repo, so an empty permissions block works there and
|
||||||
|
# fails here with `fatal: repository not found`.
|
||||||
|
contents: read
|
||||||
|
|
||||||
# Enrich gradle.properties for CI/CD
|
# Enrich gradle.properties for CI/CD
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -7,7 +7,11 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [ main, develop ]
|
branches: [ main, develop ]
|
||||||
|
|
||||||
permissions: {}
|
permissions:
|
||||||
|
# Private fork: actions/checkout needs contents:read to clone. Upstream is public,
|
||||||
|
# where an empty token can still read the repo, so an empty permissions block works there and
|
||||||
|
# fails here with `fatal: repository not found`.
|
||||||
|
contents: read
|
||||||
|
|
||||||
# Enrich gradle.properties for CI/CD
|
# Enrich gradle.properties for CI/CD
|
||||||
env:
|
env:
|
||||||
@@ -331,6 +335,10 @@ jobs:
|
|||||||
name: Run zizmor
|
name: Run zizmor
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
|
# A job-level block replaces the workflow-level one, so contents:read has to be
|
||||||
|
# repeated here or checkout fails on this private fork.
|
||||||
|
contents: read
|
||||||
|
actions: read # Required for zizmor to read workflow files.
|
||||||
security-events: write # Required for upload-sarif (used by zizmor-action) to upload SARIF files.
|
security-events: write # Required for upload-sarif (used by zizmor-action) to upload SARIF files.
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
||||||
|
|||||||
@@ -5,7 +5,11 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
types: [ labeled ]
|
types: [ labeled ]
|
||||||
|
|
||||||
permissions: {}
|
permissions:
|
||||||
|
# Private fork: actions/checkout needs contents:read to clone. Upstream is public,
|
||||||
|
# where an empty token can still read the repo, so an empty permissions block works there and
|
||||||
|
# fails here with `fatal: repository not found`.
|
||||||
|
contents: read
|
||||||
|
|
||||||
# Enrich gradle.properties for CI/CD
|
# Enrich gradle.properties for CI/CD
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -7,7 +7,11 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [ main, develop ]
|
branches: [ main, develop ]
|
||||||
|
|
||||||
permissions: {}
|
permissions:
|
||||||
|
# Private fork: actions/checkout needs contents:read to clone. Upstream is public,
|
||||||
|
# where an empty token can still read the repo, so an empty permissions block works there and
|
||||||
|
# fails here with `fatal: repository not found`.
|
||||||
|
contents: read
|
||||||
|
|
||||||
# Enrich gradle.properties for CI/CD
|
# Enrich gradle.properties for CI/CD
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -7,7 +7,11 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [ main, develop ]
|
branches: [ main, develop ]
|
||||||
|
|
||||||
permissions: {}
|
permissions:
|
||||||
|
# Private fork: actions/checkout needs contents:read to clone. Upstream is public,
|
||||||
|
# where an empty token can still read the repo, so an empty permissions block works there and
|
||||||
|
# fails here with `fatal: repository not found`.
|
||||||
|
contents: read
|
||||||
|
|
||||||
# Enrich gradle.properties for CI/CD
|
# Enrich gradle.properties for CI/CD
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -2,7 +2,11 @@ name: Validate Git LFS
|
|||||||
|
|
||||||
on: [pull_request, merge_group]
|
on: [pull_request, merge_group]
|
||||||
|
|
||||||
permissions: {}
|
permissions:
|
||||||
|
# Private fork: actions/checkout needs contents:read to clone. Upstream is public,
|
||||||
|
# where an empty token can still read the repo, so an empty permissions block works there and
|
||||||
|
# fails here with `fatal: repository not found`.
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|||||||
Reference in New Issue
Block a user