Skip to content

remove superfluous permissions block - #363

Open
gonuke wants to merge 3 commits into
cnerg:mainfrom
gonuke:repair_build_test_permissions
Open

gonuke wants to merge 3 commits into
cnerg:mainfrom
gonuke:repair_build_test_permissions

Conversation

@gonuke

@gonuke gonuke commented Sep 14, 2026

Copy link
Copy Markdown
Member

I added these hastily in review, but there was already a permissions block in the correct place and this caused failure.

@gonuke
gonuke requested a review from MicahGale September 14, 2026 18:31
@gonuke

gonuke commented Sep 14, 2026

Copy link
Copy Markdown
Member Author

I think it was @MicahGale who proposed this erroneous addition, so we'll let him review :)

@MicahGale

Copy link
Copy Markdown
Contributor

I think it was @MicahGale who proposed this erroneous addition, so we'll let him review :)

I proposed only content:read


permissions:
contents: write
pull-requests: write

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This allows the CI to write PR messages. Is it actually doing that? Also I am skeptical that contents: write is necessary.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh is the contents: write for committing updates from Zotero?

Comment on lines 72 to +73
- name: Push changes # push the output folder to your repo
uses: ad-m/github-push-action@master
uses: ad-m/github-push-action@v1

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I try to avoid this one off third party actions. You can just use gh from the shell directly I think.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll make updating this workflow a different PR and remove this change


jobs:
permissions:
contents: read

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How did this break things?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Syntax error apparently?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Invalid workflow file: .github/workflows/test_build.yml#L1
(Line: 8, Col: 5): Unexpected value 'contents', (Line: 8, Col: 5): There's not enough info to determine what you meant. Add one of these properties: cancel-timeout-minutes, container, continue-on-error, defaults, env, environment, outputs, runs-on, secrets, services, snapshot, steps, timeout-minutes, uses, with"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I see the issue. This was supposed by inside the job.

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.

2 participants