Skip to content

Commit

Permalink
Apply CI permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
JustArchi committed Nov 19, 2023
1 parent 4f459e2 commit f4f73bc
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ env:
DOTNET_NOLOGO: true
DOTNET_SDK_VERSION: 8.0

permissions: {}

jobs:
main:
strategy:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NOLOGO: true

permissions:
checks: write
contents: write
pull-requests: write
security-events: write

jobs:
main:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest

permissions:
checks: write
contents: write
pull-requests: write
security-events: write

steps:
- name: Checkout code
if: github.event_name != 'pull_request'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docker-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on: [push, pull_request]
env:
PLATFORMS: linux/amd64,linux/arm,linux/arm64

permissions: {}

jobs:
main:
strategy:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/docker-publish-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ env:
PLATFORMS: linux/amd64,linux/arm,linux/arm64
TAG: latest

permissions:
packages: write

jobs:
main:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/docker-publish-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ env:
PLATFORMS: linux/amd64,linux/arm,linux/arm64
TAG: main

permissions:
packages: write

jobs:
main:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/docker-publish-released.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ env:
PLATFORMS: linux/amd64,linux/arm,linux/arm64
TAG: released

permissions:
packages: write

jobs:
main:
runs-on: ubuntu-latest
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ on: [push, pull_request]

env:
CONFIGURATION: Release
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NOLOGO: true
DOTNET_SDK_VERSION: 8.0
NODE_JS_VERSION: 'lts/*'
PLUGINS: ArchiSteamFarm.OfficialPlugins.ItemsMatcher ArchiSteamFarm.OfficialPlugins.MobileAuthenticator ArchiSteamFarm.OfficialPlugins.SteamTokenDumper

permissions: {}

jobs:
publish-asf-ui:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -69,10 +73,6 @@ jobs:

runs-on: ${{ matrix.os }}

env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NOLOGO: true

steps:
- name: Checkout code
uses: actions/[email protected]
Expand Down Expand Up @@ -406,6 +406,9 @@ jobs:
needs: publish-asf
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- name: Checkout code
uses: actions/[email protected]
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
schedule:
- cron: '55 1 * * *'

permissions:
contents: write

jobs:
update:
runs-on: ubuntu-latest
Expand Down

0 comments on commit f4f73bc

Please sign in to comment.