Skip to content

update ghactions4r location#89

Merged
Schiano-NOAA merged 1 commit intomainfrom
ghactions4r
May 2, 2025
Merged

update ghactions4r location#89
Schiano-NOAA merged 1 commit intomainfrom
ghactions4r

Conversation

@k-doering-NOAA
Copy link
Copy Markdown
Contributor

Hello, this repository depends on ghactions4r. The ghactions4r repository will be moving from https://github.com/nmfs-fish-tools/ghactions4r to https://github.com/nmfs-ost/ghactions4r on May 16, 2025 between 9 am and 12 pm pacific. When the move happens, all GitHub actions workflows that reference a ghactions4r workflow will break.

To keep actions from breaking, please take a look at your github action YAML files (located under .github/workflows in your repository) and change any references of nmfs-fish-tools/ghactions4r (the old organization) to nmfs-ost/ghactions4r (the new organization) between now and May 16. This has been done for you in this pull request, so it can simply be merged in.

If you would like to make the changes yourself, the global replace tool in Rstudio or the search across files functionality in vs code can help you quickly find all instances of nmfs-fish-tools/ghactions4r and replace them with nmfs-ost/ghactions4r.

For example, someone using the call-spell-check.yml file would change the line

    uses: nmfs-fish-tools/ghactions4r/.github/workflows/spell-check.yml@main

to

    uses: nmfs-ost/ghactions4r/.github/workflows/spell-check.yml@main

Please reach out if you have any questions.

jobs:
call-workflow:
uses: nmfs-fish-tools/ghactions4r/.github/workflows/spell-check.yml@main
uses: nmfs-ost/ghactions4r/.github/workflows/spell-check.yml@main

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}

Copilot Autofix

AI 12 months ago

To fix the issue, we will add a permissions block at the root level of the workflow. This block will define the minimal permissions required for the workflow to function. Since the workflow appears to be related to spell-checking, it likely only needs read access to the repository contents. We will set contents: read as the permission.


Suggested changeset 1
.github/workflows/call-spell-check.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/call-spell-check.yml b/.github/workflows/call-spell-check.yml
--- a/.github/workflows/call-spell-check.yml
+++ b/.github/workflows/call-spell-check.yml
@@ -2,2 +2,4 @@
 name: call-spell-check
+permissions:
+  contents: read
 # on specifies the build triggers. See more info at https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows
EOF
@@ -2,2 +2,4 @@
name: call-spell-check
permissions:
contents: read
# on specifies the build triggers. See more info at https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows
Copilot is powered by AI and may make mistakes. Always verify output.
@Schiano-NOAA Schiano-NOAA merged commit ff3aa81 into main May 2, 2025
12 checks passed
@sbreitbart-NOAA sbreitbart-NOAA deleted the ghactions4r branch August 22, 2025 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants