Skip to content

Commit

Permalink
ci: fix OpenSSF permission token issues (#24580)
Browse files Browse the repository at this point in the history
  • Loading branch information
secustor authored Sep 21, 2023
1 parent ecf5744 commit 3d7cf23
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ concurrency:
cancel-in-progress: true

permissions:
security-events: write
contents: read

jobs:
CodeQL-Build:
runs-on: ubuntu-latest
if: github.event.pull_request.draft != true
permissions:
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/devcontainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
- reopened
- ready_for_review

permissions:
contents: read

jobs:
devcontainer-test:
runs-on: ubuntu-latest
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/update-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ env:
NODE_VERSION: 18

permissions:
contents: write
pull-requests: write
contents: read

jobs:
update-data:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0

Expand Down

0 comments on commit 3d7cf23

Please sign in to comment.