Skip to content

Commit

Permalink
fixup GH token permissions (#3681)
Browse files Browse the repository at this point in the history
  • Loading branch information
gdams authored Mar 2, 2024
1 parent 0642202 commit 074c3bc
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build-autotriage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,22 @@ env:
TRIAGE_SCRIPT: "tooling/build_autotriage/build_autotriage.sh"

jobs:
Label:
autotriage:
permissions:
contents: read
issues: write
runs-on: ubuntu-latest
name: Run Build Triage
if: github.repository == 'adoptium/temurin-build'
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0

- name: "Run Build Auto Triage"
run: bash "${PWD}/${TRIAGE_SCRIPT}" jdk8u jdk11u jdk17u jdk21u jdk22 jdk23head

- name: Create Issue From File
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: JasonEtco/create-an-issue@e27dddc79c92bc6e4562f268fffa5ed752639abd # v2
uses: JasonEtco/create-an-issue@1b14a70e4d8dc185e5cc76d3bec9eab20257b2c5 # v2.9.2
with:
filename: ./build_triage_output.md
filename: ./build_triage_output.md
3 changes: 2 additions & 1 deletion .github/workflows/ca-cert-updater.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:
- cron: "0 0 * * *"

permissions:
contents: read
contents: write # to push local changes (gr2m/create-or-update-pull-request-action)
pull-requests: write # to create a PR (gr2m/create-or-update-pull-request-action)

jobs:
update_ca_certs:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Dependabot auto-merge
on: pull_request_target

permissions:
contents: write
pull-requests: write

jobs:
dependabot:
uses: adoptium/.github/.github/workflows/dependabot-auto-merge.yml@main
5 changes: 3 additions & 2 deletions .github/workflows/testsbom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ jobs:
run: |
ant -noinput -buildfile cyclonedx-lib/build.xml clean
ant -noinput -buildfile cyclonedx-lib/build.xml build
- name: Run TemurinGenSBOM Unit test
run: |
ant -noinput -buildfile cyclonedx-lib/build.xml run
run: ant -noinput -buildfile cyclonedx-lib/build.xml run

- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
name: Collect and Archive TemurinGenSBOM Artifacts
with:
Expand Down

0 comments on commit 074c3bc

Please sign in to comment.