-
Notifications
You must be signed in to change notification settings - Fork 6
Update scala-github-actions workflows to v7.0.1 #109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| name: Dependency graph | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ base ] | ||
|
|
||
| permissions: | ||
| contents: write | ||
|
|
||
| jobs: | ||
| submit: | ||
| uses: evolution-gaming/scala-github-actions/.github/workflows/dependency-graph.yml@61f111a4472fde7b63e5921ac8a238f22d1bb028 # v7.0.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: evolution-gaming/derivation
Length of output: 1218
🌐 Web query:
github evolution-gaming scala-github-actions v7.0.1 release.yml 61f111a4472fde7b63e5921ac8a238f22d1bb028💡 Result:
The requested hash 61f111a4472fde7b63e5921ac8a238f22d1bb028 does not appear to be associated with any specific commit, file, or release tag within the evolution-gaming/scala-github-actions repository [1]. The evolution-gaming/scala-github-actions repository is a collection of shared GitHub Actions workflows for Scala projects [1]. Projects using this repository typically include a.github/workflows/release.yml file that references a specific version tag of the workflow (e.g.,
@v1,@v3, or@v4) [1][2][3]. Regarding the other identifiers in your query: - evolution-gaming/scala-github-actions: An official repository providing reusable GitHub Actions workflows for Scala, distinct from the community-maintained sbt-github-actions plugin [1][4]. - v7.0.1: This version tag corresponds to a release of the evolution-gaming/kafka-journal repository, not the scala-github-actions repository itself [5]. - release.yml: This is the standard filename for the release workflow configured in projects that utilize these shared actions [1][2][3]. If you are looking for a specific configuration or commit, please verify the repository name and the context of the hash provided, as it does not match the referenced project [1].Citations:
🌐 Web query:
GitHub Actions reusable workflows secrets inherit workflow_call named secrets GITHUB_TOKEN permissions contents write💡 Result:
In GitHub Actions, secrets and GITHUB_TOKEN permissions are handled distinctly when using reusable workflows. Secrets Inheritance By default, reusable workflows do not automatically receive secrets from the caller workflow [1][2]. To provide secrets to a reusable workflow, you have two options: 1. Use
secrets: inherit: This allows the reusable workflow to automatically inherit all secrets from the caller workflow [3][4]. When using this method, you do not need to explicitly declare the secrets in the reusable workflow'son.workflow_callblock [3][5]. 2. Explicitly map secrets: You can pass specific secrets by name in the calling workflow [1][2]. For this to work, the reusable workflow must declare these secrets in itson.workflow_call.secretsblock [6][1][2]. GITHUB_TOKEN Permissions TheGITHUB_TOKENis automatically available to reusable workflows and does not need to be passed as a secret [7]. - If you do not define apermissionsblock in the calling job, the called reusable workflow will use the default permissions [7]. - If you definepermissionsin the calling job, the called workflow will receive those specific permissions [7]. - Crucially, permissions can only be equal to or more restrictive (downgraded) in the called workflow; they cannot be elevated [7]. If the caller workflow grantscontents: write, the called workflow can use those permissions or reduce them (e.g., tocontents: read), but it cannot exceed the permissions granted by the caller [7]. Summary of Configuration To setcontents: writefor a reusable workflow, ensure the calling job explicitly grants this permission: jobs: call_workflow: uses: owner/repo/.github/workflows/reusable.yml@main permissions: contents: write secrets: inherit This configuration ensures the called workflow receives the required permissions and all secrets from the caller [3][7].Citations:
🌐 Web query:
https://api.github.com/repos/evolution-gaming/scala-github-actions/commits/61f111a4472fde7b63e5921ac8a238f22d1bb028💡 Result:
The GitHub API commit reference
61f111a4472fde7b63e5921ac8a238f22d1bb028points to a specific commit within theevolution-gaming/scala-github-actionsrepository [1].evolution-gaming/scala-github-actionsis a repository maintained by Evolution Engineering that provides shared GitHub Actions workflows for Scala projects [1][2]. These workflows are designed to standardize release and CI processes across their organization's projects [1][3][4]. The repository provides reusable workflows (such asrelease.yml) that projects can invoke in their own.github/workflows/files using theuses: evolution-gaming/scala-github-actions/.github/workflows/<workflow>.yml@<version>syntax [1][5]. These workflows typically automate tasks like: - Running SBT build, test, and check commands [1]. - Publishing artifacts to an internal Artifactory or other repositories [1][6]. - Managing Git tag-based releases, including automatic GitHub release creation and versioning viasbt-dynver[1][4][5]. If you are encountering this commit hash in a repository's history, it represents a specific point in the development of these shared CI/CD tools used by Evolution Gaming [1][7].Citations:
🌐 Web query:
https://api.github.com/repos/evolution-gaming/scala-github-actions/git/ref/tags/v7.0.1💡 Result:
The URL
https://api.github.com/repos/evolution-gaming/scala-github-actions/git/ref/tags/v7.0.1refers to a specific Git reference (a tag namedv7.0.1) within theevolution-gaming/scala-github-actionsrepository [1]. The repositoryevolution-gaming/scala-github-actionsprovides GitHub Actions workflows tailored for Scala projects, frequently utilized by Evolution Gaming to standardize CI/CD pipelines, including tag-based release processes [1][2][3]. Regarding the specific referencev7.0.1: * The GitHub API endpoint/repos/{owner}/{repo}/git/ref/{ref}is used to retrieve information about a specific Git reference, such as a tag or branch [4]. * While the repository exists and is used for Scala release automation, there is no public indication thatv7.0.1is a supported or existing tag for this specific repository. According to available repository data, the project has used versions such asv4in its workflow definitions [1][5]. * If this URL returns a 404 error, it confirms that the specific tagv7.0.1does not exist in the repository [4]. If you are attempting to use this repository in a GitHub Actions workflow, it is recommended to reference a verified version (such asv4or the latest stable tag found on the repository's Releases page) rather thanv7.0.1[1][5].Citations:
🌐 Web query:
https://raw.githubusercontent.com/evolution-gaming/scala-github-actions/61f111a4472fde7b63e5921ac8a238f22d1bb028/.github/workflows/release.yml💡 Result:
The file located at.github/workflows/release.yml in the evolution-gaming/scala-github-actions repository is a reusable GitHub Actions workflow designed to automate the release process for Scala projects [1][2]. It is intended to be called by other repositories in the organization to standardize their release and publishing pipelines [2]. Key characteristics and usage details include: Purpose and Mechanism: The workflow facilitates automated releases based on Git tags [3][4][5]. It typically integrates with sbt-dynver to automatically determine the project version from the latest Git tag [3][4][5]. Usage Configuration: To use this workflow, a project defines a local.github/workflows/release.yml file that calls the shared workflow using the 'uses' keyword [1][6][3]. A standard configuration looks like this [1]: name: Publish Release on: push: tags: - 'v*' jobs: release: uses: evolution-gaming/scala-github-actions/.github/workflows/release.yml@v4 secrets: inherit Version Options: The workflow supports different versions (e.g.,
@v1,@v3,@v4) [1][3]. Newer versions like v4 allow for additional customization, such as overriding the default sbt commands used during the verification and publishing phases [1][6]. This is particularly useful for complex projects with mixed Scala versions that require specific build commands (e.g., to avoid the use of + in sbt-projectmatrix environments) [1][6]. Release Lifecycle: 1. Trigger: The workflow is triggered by pushing a versioned tag (e.g., vX.Y.Z) [3][4][5]. 2. Execution: It performs the build, test, and publish steps [1][3]. 3. Completion/Failure: Upon success, it automatically creates a GitHub release with generated notes [3][4][5]. If the process fails, it may delete the tag from the remote repository to prevent corrupted release states [3][4][5].Citations:
Pass only
JFROG_ACCESS_TOKENto the reusable workflow.secrets: inheritexposes every secret available to the caller. DeclareJFROG_ACCESS_TOKENunderworkflow_call.secretsand pass only that secret.GITHUB_TOKENis provided automatically.🧰 Tools
🪛 zizmor (1.29.0)
[warning] 9-12: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block
(excessive-permissions)
[warning] 10-10: secrets unconditionally inherited by called workflow (secrets-inherit): this reusable workflow
(secrets-inherit)
🤖 Prompt for AI Agents
Source: Linters/SAST tools