Skip to content

Commit

Permalink
ci: Pass GITHUB_TOKEN in publish workflow (#4)
Browse files Browse the repository at this point in the history
Pass GITHUB_TOKEN in the publish workflow.

Remove dependency submission from the build flow.

---------

Signed-off-by: Usman Saleem <usman@usmans.info>
  • Loading branch information
usmansaleem authored Mar 11, 2024
1 parent 2076dff commit 4481be2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,3 @@ jobs:

- name: Build with Gradle Wrapper
run: ./gradlew build

dependency-submission:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'

# Generates and submits a dependency graph, enabling Dependabot Alerts for all project dependencies.
# See: https://github.com/gradle/actions/blob/main/dependency-submission/README.md
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
4 changes: 3 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,6 @@ jobs:
run: ./gradlew build

- name: Publish to GitHub Packages
run: ./gradlew publish
run: ./gradlew publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4481be2

Please sign in to comment.