Skip to content

Commit

Permalink
[workflows] read-only permissions for GITHUB_TOKEN in all flow
Browse files Browse the repository at this point in the history
Setting read-only permission for all scopes for the GITHUB_TOKEN used
in all remaining workflows.

This is a part of adopting security best practices of the
OpenSSF based on the ScoreCard tool [1]

[1] https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

Signed-off-by: Georg Kunz <georg.kunz@ericsson.com>
  • Loading branch information
gkunz committed Aug 23, 2023
1 parent 7033989 commit 27656fb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/config_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ on:
# Allow running this job manually from either API or GitHub UI.
workflow_dispatch:

permissions: read-all

jobs:
checker-config-coverage:
name: "Config coverage of checkers"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
release:
types: [published]

permissions: read-all

jobs:
main:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
release:
types: [published]

permissions: read-all

jobs:
build:
name: Build pypi package
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/snap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
release:
types: [published]

permissions: read-all

jobs:
build:
name: Build snap package
Expand Down

0 comments on commit 27656fb

Please sign in to comment.